Tag Archive: diagnostics

Debugging AJAX

I can debug my JavaScript using console.log(), which also displays code errors. I can debug my PHP code using print_r() (which I prefer because it’s leaner; many use var_dump()). Since I have PHP’s display_errors directive enabled, and usually I declare error_reporting( E_ALL ^ E_STRICT ) or error_reporting( -1 ), so errors are output within the browser.*

So I can immediately read ... 

Read article