Eclipse Debugging
Enable Debugging in Eclipse Luna
·
To enable debugging in PHP , you first have to
modify the PHP.ini file but there is a caveat
- Do not modify directly , go through the link http://xdebug.org/wizard.php
- In This site copy the phpinfo output as it is ( not source ), than it gives the recommendations after analyzing the output
- In my case it was downloading the file and saving in the folder below and modifying entry in php.ini zend_extension = C:\xampp\php\ext\php_xdebug-2.3.2-5.6-vc11.dll
- This just enabled debugging in apache for php, now comes the ide turn , in my case eclipse.
- To enable debugging you have to save it as a configuration,
but that’s not all
- while running eclipse I realized that another entry to be made in php.ini file for xdebug.remote_enable = 1
- Finally I am able to see a debugger in eclipse but it does funny thing , the debug cursor does not move with F5 , or any other key , thankfully it was just a bug that was fixed with update Version: Luna Service Release 2 (4.4.2) Build id: 20150219-0600and now finally debugging is on .
- One important suggestion: always restart the server as well as IDE after making any change.
www.junctiontech.in
info@junctiontech.in
Contact : 8109069226
junction software pvt ltd
junction software pvt ltd
Comments
Post a Comment