How to install and config Xdebug on ubuntu
Xdebug is an Open Source PHP extension for code debugging and profiling. Here i've mentioned some easy steps, by which Xdebug can be installed on any ubuntu machine. By the way, i'm using Ubuntu 13.10. To know more about Xdebug google can help you a lot.

I assumed you have Apache2 + PHP5 working already.

sudo apt-get install php5-dev php-pear 



Now install xdebug thru PECL.

sudo pecl install xdebug 



Now we need to find where xdebug.so went (the compiled module)

opsol@system-6:~$ find / -name 'xdebug.so' 2> /dev/null
/usr/lib/php5/20060613/xdebug.so 



Then edit php.ini

sudo gedit /etc/php/apache2/php.ini 



Add the following line

zend_extension="/usr/lib/php5/20060613/xdebug.so"
xdebug.remote_enable=on
xdebug
.remote_handler=dbgp
xdebug
.remote_host=localhost
xdebug
.remote_port=9000 



For enabling profiler, add following lines to your php.ini

xdebug.profiler_enable 1
xdebug
.profiler_output_name xdebug.out.%t
xdebug
.profiler_output_dir = /tmp
xdebug
.profiler_enable_trigger 



Then restart apache for changes to take effect

sudo /etc/init.d/apache2 restart 




Ref :
http://ubuntuforums.org/showthread.php?t=525257
http://wiki.netbeans.org/HowToConfigureXDebug#Set_up_your_environment
http://www.sitepoint.com/debugging-and-profiling-php-with-xdebug/

14th Dec 2013 at 2:14 PM   1495 Views

Oop's, No Comments has been droped for this thread yet now.
Why don't you drop one.