Posts in PHP Categories

Getting Started Debugging PHP with Zend and Eclipse on OSX

Its been quite some time since I looked at a PHP script, the first dynamic website I built was PHP and PostgresSQL and for sometime it was PHP all the way. But sometimes project requirements dictate a certain language, so later I worked with Allaire Coldfusion, ASP and ASP.NET. I used two debugging techniques for PHP. The first method is turning on error reporting which is an after the fact method of determining the problem. It can sometimes be difficult to determine the cause of the problem, as error messages often tell you exactly what is wrong not the cause. The second method employed is printing out variables at points in my scripts to narrow down the point at where the error is occurring. I thought it would be a good time to look at some of the developments in debugging PHP. Unless you write your code perfectly first time off debugging is an important part of developing any sort of software.