Debug PHP — Xdebug with your IDE (NetBeans, Eclipse, etc.)

AshokTechnical TipsLeave a Comment

Just came across this extremely handy tool online. This is how easy all web-based utilities should be.

It provided me with a link to the file I needed, the location where I should copy it, and the config file changes I needed in my php.ini. That’s pretty awesome.

Note, it didn’t tell me a couple of parameters I needed, so I am sharing all my changes to php.ini below:

zend_extension = \xampplite\php\ext\php_xdebug-2.1.0-5.3-vc6.dll
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000

I did this in all of 5 minutes after fooling around with Eclipse PDT + Zend debugger for over an hour.

PS: I checked out a couple of different PHP IDEs and decided on NetBeans today. Let me know if you have any insights since I haven’t played with a bunch of them in recent years.

Leave a Reply

Your email address will not be published. Required fields are marked *