this article describes how to install eclipse pdt and xebug on an ubuntu server and a ubuntu desktop machine..
run
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:
xdebug.remote_enable=On xdebug.remote_host="172.16.16.216" xdebug.remote_port=9000 xdebug.remote_handler="dbgp"
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.