There are many built-in methods of logging and troubleshooting in PHP. In most cases, PHP data is logged in an error log file using the error_log() function. The error log is disabled by default in PHP. To enable you’ll need
Log PHP data in JavaScript console
