Install xdebug on PHP ubuntu 11.04
Nomally php var_dump() function display like thisWe will override var_dump() by xdebug for human read with color highlight like this
1. install php5-xdebug follow command :
sudo apt-get install php5-xdebug
2. find xdebug.so :
sudo find / -name xdebug.so
result just like this :
/usr/lib/php5/20090626+lfs/xdebug.so
3. Edit php.ini :
sudo gedit /etc/php5/apache2/php.ini
add this in the end of file :
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
find html_errors in php.ini and change it to on :
html_errors = on
save your php.ini
4. Restart Your Apache :
sudo /etc/init.d/apache2 restart5. have debug fun !!!
0 comments: