###Step 1 make sure xdebug is installed and as a zend extension.
sudo apt-get install php5-dev
&& sudo apt-get install php-pear
sudo pecl install xdebug
sudo apachectl restart
make sure xdebug has an .ini file check if there is one for your whole system or multiple. ( force php and apache to use the same conf.d xdebug.ini file)