[xdebug-general] Re: Feature Request for XDebug to turn OFF color in var_dump()

From: Derick Rethans <derick[@]xdebug.org>
Date: Mon, 3 Feb 2014 12:45:36 +0000 (GMT)

On Wed, 29 Jan 2014, Daevid Vincent wrote:

> <pre class='xdebug-var-dump' dir='ltr'>
> <b>object</b>(<i>Join</i>)[<i>3</i>]
> <i>public</i> 'username' <font color='#888a85'>=&gt;</font>
> <small>string</small> <font color='#cc0000'>'asdfasdf5'</font>
> <i>(length=9)</i>
> <i>public</i> 'password' <font color='#888a85'>=&gt;</font>
> <small>string</small> <font color='#cc0000'>'testtest'</font>
> <i>(length=8)</i>
> <i>public</i> 'email' <font color='#888a85'>=&gt;</font>
> <small>string</small> <font color='#cc0000'>'clement[@]example.net'</font>
> <i>(length=16)</i>
> <i>public</i> 'customer_lname' <font color='#888a85'>=&gt;</font> <font
> color='#3465a4'>null</font>
> <i>public</i> 'customer_fname' <font color='#888a85'>=&gt;</font> <font
> color='#3465a4'>null</font>
> <i>public</i> 'customer_address' <font color='#888a85'>=&gt;</font> <font
> color='#3465a4'>null</font>
>
> I just want the nice plain version without all the HTML markup in there.

Turn off xdebug.overload_vardump in php.ini then, or html_errors if you
must.

> Ideally it would be a second parameter rather than a ini_set() option
> (or do both!)
>
> var_dump($myvar, NO_COLOR); or something like that.

That's not possible, as var_dump accepts a variable number of arguments
to dump.

cheers,
Derick

-- 
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
twitter: @derickr and @xdebug
Received on Mon Feb 03 2014 - 12:45:36 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST