I have xampp with wordpress inside it. I have also downloaded the eclipse plugin for PHP from http://download.eclipse.org/tools/pdt/updates/3.0/milestones/ .I want to create a project in eclipse (Indigo 3.7) and debug my PHP code. Is there a way to do it ?
I have tried load of things. Finally, i decided i will go ahead with XDebug. I configured XDebug in PHP by modifying php.ini file and saw that it had been configured by viewing phpinfo().
I have configured eclipse indigo to use XDebug as my php debugger but nothing is happening.
Steps I followed :
1) Created a PHP project in eclipse from existing location For e.g. my project is in E:\others\xampp-win32-1.7.7-VC9\xampp\htdocs
2) Modified php.ini file to support xdebug and verified from phpinfo() method.
3) Configured eclipse to use XDebug as the PHP debugger.
Following is how the PHP debug looks like:
Secondly, comes the PHP executable:
Next, is what i think is something going wrong ! Configuring the PHP server. I read that we need to specify the path mapping and stuff. I didn't get exactly how to do that.
and the path mapping for the server
Just to add when i try to debug the index.php file as debug as PHP script : it keeps on launching with the message Launching : Launching delegate (24%) and never completed execution.
Can anyone suggest what is missing or needs to be corrected ?
PHP.ini file modification for XDebug
[XDebug] zend_extension = "E:\others\xampp-win32-1.7.7-VC9\xampp\php\ext\php_xdebug.dll" xdebug.remote_enable=1 xdebug.remote_host="127.0.0.1" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" xdebug.remote_mode="req"
Thanks, Adithya.