Showing posts from September, 2016

How to setup xdebug with Netbeans on Unbuntu

xdebug is a PHP extension for debugging of php code. It supports stack and function traces, profiling information and memory allocation and script execution analysis. It uses the DBGp debugging protocol.  In this post we are going to see easy steps to install and setup it with Netbeans IDE on Ubuntu Step 1: Install xdebug using following command sudo apt-get install php5-xdebug   Step 2: Browse to your php folder and locate file. In my case it is /usr/lib/php5/20121212/ . Copy this files path. Step 3: Open your php.ini ( /etc/php5/apache2/php.ini ) and add following lines at the end of this file [xdebug]zend_extension="/usr/lib/php5/20121212/"xdebug.remote_enable=1xdebug.remote_autostart=1xdebug.profilerenable=1xdebug.remote_handler=dbgpxdebug.idkey="netbeans-xdebug"xdebug.remote_mode=reqxdebug.remote_host= Replace zend_extension path with the path you have copied in previous step Step 4: Restart your