php_development_with_eclipse_pdt_xdebug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
php_development_with_eclipse_pdt_xdebug [07.01.2011 11:37] Pascal Suterphp_development_with_eclipse_pdt_xdebug [07.01.2011 12:23] (current) Pascal Suter
Line 16: Line 16:
 </code> </code>
 and you're done installing eclipse pdt :)  and you're done installing eclipse pdt :) 
 +
 +===== make them cooperate =====
 +on your webserver edit the xdebug ini file: 
 +  nano /etc/php5/conf.d/xdebug.ini
 +and add these lines: 
 +<code>
 +xdebug.remote_enable=On
 +xdebug.remote_host="172.16.16.216"
 +xdebug.remote_port=9000
 +xdebug.remote_handler="dbgp"
 +</code>
 +
 +of course set the right ip address of your desktop from which you are running eclipse.. the php server connects to the eclipse desktop.. so basically your eclipse becomes the server at that moment.. so you need to provide an ip addres which is reachable for the server. (configure port forwardings etc. in your firewall if necessary) 
 +
 +in eclipse create a new php project and go to window->pereferences and open the PHP subtree. in the Debug section switch the dbugger to xdebug. 
  • php_development_with_eclipse_pdt_xdebug.txt
  • Last modified: 07.01.2011 12:23
  • by Pascal Suter