Disable xdebug html errors & colored output using ini_set()

To disable xdebug's colorized html output, use the following ini_set().

ini_set('xdebug.default_enable', false);
ini_set('html_errors', false);

This removes the html tags including the pre tag with a "xdebug-var-dump" class when using var_dump():

<pre class='xdebug-var-dump' dir='ltr'>
View this page on GitHub.
Posted .

2 comments

  1. anonymous

    This is exactly what I needed! Thanks a ton!!

  2. anonymous

    Thank you!!

Leave a Reply