About me

Paolo Iannelli Picture

Paolo Iannelli

Big Daddy at Mega Labs

Location
Amsterdam Area, Netherlands
Industry
Information Technology and Services
Interests
C, Python, Big Data, Scalability, High Availability, Performance
Description
Expert Software Engineer with more than 12 years of experience.
Strong in critical thinking, problem solving and high performance architectures.
Paolo Iannelli Labs Rss

Solution for PHP xdebug not formatting / overloading var_dump()

Posted on : 15-04-2011 | By : Paolo Iannelli | In : PHP, Software Development

Tags: , , , , , , , , , ,

1

If any of you have ever experienced a problem with xdebug non displaying var_dump() with the nice overload method it includes, especially when using PHP 5.3, you may try the following:

  1. Open your php.ini file
    (for instance located in /etc/php5/apache2/php.ini)
  2. Locate the line that says html_errors = Off
  3. Change it in html_errors = On
  4. Restart your webserver (/etc/init.d/apache2 restart for instance)

If you didn’t change anything in the configuration of xdebug, overload_var_dumps should be already enabled and you should get var_dumps like the following :

Comments (1)

A PHP patch about this was accepted yesterday: https://wiki.php.net/rfc/error-formatting-for-developers

Regards.

Write a comment