May 8, 2024

Before, the only thing I saw available to debug PHP were commercial debuggers (like Zend Studio). Now,I am able to use a debugger with PHP (and for free!). I use Eclipse for all my development (Java and PHP). And I use PHPEclipse for editing PHP. Then yesterday I discovered DBG. I downloaded the DBG 2.13.1 dbg modules and used the 5.1.1 dll. I put it in d:\php\ext and modified d:\php\php.ini like the instructions said. But, I couldn’t see any changes in the phpinfo. Then I came across this page and it mentioned about changing the php.ini in c:\windows. After I did that, I was able to see the changes in phpinfo. I didn’t have to install the DBG client since PHPEclipse has that built-in. I setup a project debugging configuration with my home page as the initial page. When I started it, it opened up the page in the internal browser and then it was able to stop at my breakpoint and view all the variables. One thing I’ve noticed though is that it really slows down my machine. When debugging is on, it pegs the CPU usage at 100%. But, at least I’m now able to do real debugging in PHP without having to put echo statements everywhere.