I'm with webik but I had to change a config file to get it to work properly on my debian box, pretty sure this will work the same on ubuntu though~
Code:
devtix:/# sudo apt-get install php5-xdebug
Find path to xdebug:
Code:
devtix:/# find / -name 'xdebug.so'
/usr/lib/php5/20060613+lfs/xdebug.so
and load it as a zend extension in the /etc/php5/cli/conf.d/xdebug.ini generated by apt:
Code:
zend_extension="/usr/lib/php5/20060613+lfs/xdebug.so"
Reload apache
Code:
sudo /etc/init.d/apache2 restart
Test xdebug is loaded correctly with php -v
Code:
devtix:/# php -v
PHP 5.2.8-0.dotdeb.1 with Suhosin-Patch 0.9.6.3 (cli) (built: Dec 11 2008 23:02:27)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans
Bookmarks