View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001475||Xdebug||Feature/Change request||public||2017-09-25 11:52||2019-01-22 22:28|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0001475: Add better variable dumping functions|
|Description||> I just discovered your wonderful library, and will make a donation|
> when I am able. I especially like the var_dump() overload. I grew
> tired of the limitations of PHP's variable display functions long ago
> and created my own, which I have tweaked over the years. It's pretty
> thorough, but I like yours better. A text-output option would be
> useful, as sometimes I am viewing the page source while debugging.?
> I have another debugging function I've found useful, especially when
> dealing with strings containing non-printing characters. It simply
> breaks it out, character by character, with ASCII values displayed.
> I've attached it so you can see what I mean. It might be useful to
> have something like this in Xdebug.
I think something like this is really nice, but I am wondering how this
would easily make it into Xdebug. Right now, when Xdebug dumps variables
it uses the xdebug.collect_params setting, which is mostly meant to show
a value on a single line. Right now, there are already 5 possible
>From your suggestion, I can already think of a number 6, and perhaps a
number 7 that shows the Unicode Names for characters as well:
https://en.wikipedia.org/wiki/List_of_Unicode_characters. As this is not
a setting you can change per call to var_dump() (it is unfortunately a
variable argument function), it has to be done through an INI
setting—Unless a totally new function is added. I will mull this over,
and if you have good ideas I'm more than happy to hear about them
Another feature which would be nice is a shut-up setting. Right now I have a bunch of var_dump() and xdebug_print_function_stack() throughout my code
to see what's going on. I think I have everything worked out, and it would be nice to be able to just tell them all to shut up, without having to go
through and remove them all, in case I still need them. I tried setting xdebug.var_display_max_depth to 0, but that didn't do it.
|Tags||No tags attached.|