3 thoughts on “Debugging Article for PHPWomen.org”
I find good error handling and log files are the best starting point.
As I use ob_gzhandler() a lot of echo/var_dump() stuff gets lost and results in a blank page (as the compressed content becomes invalid). Here’s a minimal example to hack away at:
Hey Geoff! Logging is certainly a very useful technique – I build it in to my apps, but when you inherit something sometimes its the apache logs or nothing :)
I find good error handling and log files are the best starting point.
As I use ob_gzhandler() a lot of echo/var_dump() stuff gets lost and results in a blank page (as the compressed content becomes invalid). Here’s a minimal example to hack away at:
ob_start(‘ob_gzhandler’);
echo ‘Hello, world.’;
ob_end_clean();
echo ‘Some debug info’;
Hey Geoff! Logging is certainly a very useful technique – I build it in to my apps, but when you inherit something sometimes its the apache logs or nothing :)