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'>
Did this help you? Please let me know with a comment. Thank you
Posted .

1 comment (RSS)

  1. anonymous

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

Leave a comment