views:

329

answers:

3

Is there any IDE (linux based) for PHP that can be used to debug? Or any one can help me to configure debug properties/settings of eclipse? Now i am using ubuntu 9.04. i have tried to debug but havn't tried to configure, because i don't know how to configure it. can you tell me the exact way? please help me.

A: 

I recommend Eclipse PDT with Xdebug.

erenon
A: 

You can also try Aptana (based in Eclipse) or NetBeans.

Working with NetBeans and PHP is really simple. ou can follow this tutorial

Carlos Tasada
+1  A: 

I use ActiveState Komodo IDE 5 w/ xdebug & xdebug helper firefox extension.

** You can use most of the info below for any IDE that supports xdebug **

You need to add the xdebug information to your php.ini.

[xdebug]
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.extended_info=1
xdebug.idekey=

Then, in preferences->languages->php, go thru the debugger wizard. Next you must turn on "listen for debugging connections" in Komodo IDE under the Debug dropdown.

Setup the xdebug helper firefox addon and enter the required info in its config dialog for your debug server, restart firefox and click the icon in the lower right corner to begin using xdebug on a page.

simplemotives