I recently heard about this debugger called xDebug on here, and have been curious to get it running on my machine. I'm using eclipse PDT.
I'm going to take you through the steps I have taken (very brief) and then I hope to get some feedback.
1) Used the wizard at xDebug - It's the one where you copy the output of your phpinfo().php into a textbox, and receive tailored instructions on how to install xDebug with your set-up.
My tailored feedback went like this:
1) Download php_xdebug-2.2.1-5.4-vc9.dll
2) Move the downloaded file to C:\php\ext
3) Edit C:\php\php.ini and add the line
zend_extension = C:\php\ext\php_xdebug-2.2.1-5.4-vc9.dll
4)Restart the webserver
So I downloaded the file, moved it to the appropriate location, and added the extension to my php.ini. It may be worth noting that I do not currently use the zend framework, although I'm not sure if that matters.
When that was done, I restarted apache.
After that, I fired up eclipse, went to Window > Properties > PHP > Debug and selected xDebug as my debugger.
Another thing that may or may not be worth noting: When I go to installed debuggers in eclipse, it lists xDebug with the port of 9000. Zend debugger is also on that list with the port of 10000.
So here's where I assumed/hoped I would be done with the installation, and attempted to use breakpoints:
So I opened up a random php file, and added breakpoints to parts of the code that I thought would run (and should run) and went to run > debug.
Something happens, I'm not sure what. The internal browser in eclipse opens up, I enter data into a form, at which point, the breakpoint should.. break.. the script, but it doesn't. It simply gives me the output I would get if I had run it in a regular browser.
I also can't find a button to step over/step into.
Any help would be appreciated ^^