PHP: Colors in var_dump (Ubuntu)

user585936 picture user585936 · Feb 13, 2011 · Viewed 7.5k times · Source

I'd like to see the colors and formatting that can come with var_dump. In my php.ini html_errors is set to On. This is confirmed by phpinfo().

My PHP version is 5.3.3 on Ubuntu 10.10. Anybody an idea?

Answer

Maerlyn picture Maerlyn · Feb 13, 2011

You're looking for XDebug.

sudo apt-get install php5-xdebug
sudo /etc/init.d/apache2 restart

and you're done.