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

From: Jens-André Koch <knd.vain[@]gmail.com>
Date: Thu, 30 Jan 2014 15:23:54 +0100

Hey Daevid,

you are viewing the raw reponse content in the "Response" tab,
but you might view the reponse content as properly formatted HTML in the
"HTML" tab.
It's not without colors, but easy to read.

Regards, Jens

Am 29.01.2014 23:14, schrieb Daevid Vincent:
>
> Derick,
>
> I love XDebug.
>
> However one thing that is problematic is that there doesn't seem to be
> a way to turn off the special color and formatting. There is only a
> way to force it enabled on a CLI via xdebug.cli_color. That's the
> opposite of what I want.
>
> For example, I am debugging some AJAX using Firefox and Firebug. I
> make the request and using that tool I can view the returned
> "Response". However it is all difficult to read:
>
> <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.
>
> 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.
>
> Thanks,
>
> Daevid Vincent
>
> http://daevid.com
>
> 425.985.1752 cell PST
>
Received on Thu Jan 30 2014 - 14:23:54 GMT

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