Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable var_dump() in xdebug?

Tags:

php

xdebug

Is it possible to switch off var_dump() in PHP application when using with Xdebug? I have used several var_dump() which break the page. I want some function or way so that it is possible to switch off/on the var_dump() output and so it is possible to see the whole page structure without the dumped data for debug purpose.

like image 756
varuog Avatar asked Mar 14 '13 02:03

varuog


1 Answers

Put this in the php.ini settings

xdebug.overload_var_dump=0

Otherwise, you can set this also at runtime with:

ini_set("xdebug.overload_var_dump", "off");
like image 138
Zaw Aung Avatar answered Nov 16 '22 02:11

Zaw Aung