Xdebug is a PHP debugger with Eclipse integration. Here are some instructions for installing it .
First login in ubuntu
Then install xdebug by running below command
sudo apt-get install php5-xdebug
after installation you should edit below file
sudo gedit /etc/php5/conf.d/xdebug.ini
Add below this line
xdebug.remote_enable=1
Error : SWT browser is not available
Sometime eclipse display above error.To fix the above error, please install below package.
xulrunner-1.9.2
Now you are able to debug php code with help of eclipse.
Enjoy!!