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

If the extension is added to your php.ini file automatically, remove the following line:


And replace it with:

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

Restart the Web Server

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

sudo apachectl restart