Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xdebug loaded correctly in Ubuntu but var_dump/error handling not being over-ridden

Tags:

php

xdebug

I have recently upgraded to Ubuntu 10.04 and as usual installed xdebug from the package manager. I've never had a problem after that with getting the formatted error messages and var_dumps to show up but this time they don't.

I ran phpinfo() and it is definitely loading it, and I even tried running some of the custom xdebug functions and all is working fine, but when I do a var_dump it comes up as though xdebug isn't installed. Any ideas why this is happening?

like image 859
Leo Allen Avatar asked Aug 10 '10 21:08

Leo Allen


1 Answers

xdebug overloads the default var_dump function with its own, which means some settings may be carried over from the default PHP configuration. Specifically, make sure html_errors = On.

It's also possible that the xdebug package added some non-default configuration options. Specifically in this case, make sure xdebug.overload_var_dump = 1.

like image 82
cbednarski Avatar answered Nov 08 '22 04:11

cbednarski