#in order to install phpsize because the pecl will need this
sudo apt-get install php5-dev
sudo apt-get install php-pear # in order to install xdebug
sudo pecl install xdebug
sudo apt-get install php5-xdebug
Edit your php.ini configuration and edit this settings
display_errors on
html_errors=on
Print a phpinfo() and check if xdebug is correctly installed. You can use the php -v command












