Search code examples
phpvar-dump

PHP: Colors in var_dump (Ubuntu)


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?


Solution

  • You're looking for XDebug.

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

    and you're done.