PHP Development with Eclipse PDT and xdebug

this article describes how to install eclipse pdt and xebug on an ubuntu server and a ubuntu desktop machine..


apt-get install xdebug

and you're done installing ;)

unfortunately the ubuntu repositories don't contain a PDT package for eclipse, so you need to get it from another repository:

sudo add-apt-repository ppa:yogarine/eclipse/ubuntu
sudo apt-get update 
sudo apt-get install eclipse-pdt

and you're done installing eclipse pdt :)

on your webserver edit the xdebug ini file:

nano /etc/php5/conf.d/xdebug.ini

and add these lines:


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