Insert the below PHP code into the PHP file you want to debug, then this will report all PHP errors to the browser when accessing the PHP page.

''error_reporting(E_ALL);''\\
''ini_set("display_errors", 1);''