Links: Homepage
Dependencies: PHP | Autoconf

The Xdebug extension helps you debug your PHP scripts. It installs as a PHP extension.


Install Xdebug using PECL.

pecl install xdebug

Execute the following line to update your php.ini file.

echo 'zend_extension=/usr/local/php/lib/php/extensions/no-debug-zts-20121212/xdebug.so' >> /usr/local/php/etc/php.ini

Make sure the path to the extension is the same.

Restart the Web Server

The web server must be restarted for the changes to take effect.

sudo /usr/local/apache/bin/apachectl -k restart