News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Justin's Blog:
Debugging Php
February 09, 2006 @ 07:22:32

On his blog, Justin has posted an article from David Sklar today - a look at PHP error reporting - conifguration, locating errors, and checking variable values as the script runs.

Whether you're a PHP newbie or a wizard, your programs are going to have bugs in them. Nobody's perfect.

This article gives you some techniques for finding and fixing the problems in your programs. It covers three topics: how to get the PHP interpreter to report the errors that interest you, how to locate basic syntax errors in your program, How to check the values of variables as your program is running.

The configuration section mentions the display_errors and log_errors options to help debug your scripts. There's also a bit describing what the different error types mean (parse, fatal, strict) and simple things to look for to handle them. He also suggests some other resources to look at to help with more detailed error reporting...

10 comments voice your opinion now!
debugging error reporting types common parse fatal notice debugging error reporting types common parse fatal notice


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann\'s Blog: More Work on Reporting in PHPUnit 3

CodeSnipers.com: Caveman PHP Debugging

Silver Lining Blog: How to Enable XDebug in Windows Azure Web Sites

NetTuts.com: 20 All Too Common Coding Pitfalls For Beginners

Derick Rethans\' Blog: Parsing Mail with PHP


Community Events





Don't see your event here?
Let us know!


development framework deployment threedevsandamaybe language release series list bugfix conference zendserver code podcast laravel api community interview tips symfony introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework