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);
As of Xdebug 3, it is possible to disable the Xdebug completely by setting the option xdebug. mode to off , or by setting the environment variable XDEBUG_MODE=off . It is very easy to disable Xdebug just for composer, by aliasing composer . You can add the alias to your $HOME/.
UPDATE -- Disable for CLI only d/20-xdebug. ini is just a symlink and if you edit it, you edit the original file which is common for cli and non-cli. I think the right solution is simple delete the symlink.
I had to add xdebug.overload_var_dump=off
to php.ini
to disable xdebug's overloading the var_dump()
function, permanently for me.
Internally Zend_Debug
uses var_dump, and AFAIK you can't turn off XDebug's var_dump overloading in runtime.
You can do two thing to get your output without html tags.
ini_set('html_errors', 0)
before dump.$Message = print_r($objects, true)
- notice second parameter.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With