Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

I recommend Eclipse PDT with Xdebug.

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

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

I am using PHPStorm with xdebug. Works quite well :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top