Dark Launch

Disable xdebug html errors & colored output using ini_set()

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

PHP
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():

Code
<pre class='xdebug-var-dump' dir='ltr'>

Comments


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