Is there a way to disable xdebug's var_dump temporarily?

Yasser1984 picture Yasser1984 · Nov 21, 2011 · Viewed 8.9k times · Source

I want to use Zend_Debug::dump, to keep some variables in the log, but since I have xdebug installed, and xdebug replaces php's var_dump, my values in log are html values produced by xdebug.

I was wondering if there is a way in php to disable this feature, and enabled it again, so that I could put them above and below this line:

    $Message = Zend_Debug::dump($objects, null, false);

Answer

rafi picture rafi · Dec 18, 2013

I had to add xdebug.overload_var_dump=off to php.ini to disable xdebug's overloading the var_dump() function, permanently for me.