
Open Netbeans and navigate to Tools -> Options -> PHP -> Debugging. If not, find xdebug.so file and put its path here To "tell" your Apache web server about it, append to /etc/php5/apache2/php.ini file (this location may vary under other distributions) the following lines: zend_extension="/etc/php5/xdebug/xdebug.so" make sure this path exists in your filesystem. Download & installationĭownload & installation of Xdebug is done by the following command: pecl install xdebug Configuration After following the instructions you will be able to debug your php project whether you run it on your local Apache web server or via the command line ("cli").

In this article I will explain how to install and set up Xdebug for Ubuntu (and perhaps other linux distributions) users.

Many developers are unaware of the great power that Xdebug tool adds to the process of debugging a php project.
