Pimping Xdebug stack traces
I've always been annoyed by the way how Xdebug's stack traces looked liked. So I spend some time on making them look better. I will show the differences according to the following script:
<?php
ini_set('xdebug.show_local_vars', 'on');
ini_set('xdebug.dump_globals', 'on');
ini_set('xdebug.dump.GET', '*');
ini_set('xdebug.collect_params', 'on');
ini_set('xdebug.var_display_max_depth', 2);
function foo( $a )
{
for ($i = 1; $i < $a['foo']; $i++)
{
}
}
set_time_limit(1);
$c = new stdClass;
$c->bar = 100;
$c->foo = "12";
$a = array(
42 => false,
'foo' => 912125235,
0 => null,
3.141592654,
"testing",
array(),
$c, new stdClass,
fopen( '/etc/passwd', 'r' )
);
foo( $a, 42, null, false, "testing",
$c, fopen( '/etc/passwd', 'r' ) );
?>
Old:
New:
The code for this will make it into CVS soonish.
Comments
Nice work, will make it a lot more enjoyable to work with xdebug with the new UI :-)
that's much better!
Great, looks much better than a patch I was thinking to submit but I never finished ;)
Life Line
Merged pull request #1055
Fixed issue #2387: Remove INI entries for changed and removed Xdebug …
Merged pull request #1053
Reimplement PR #1052 with normal style
Add missing section comment
Merge branch 'xdebug_3_5'
Merged pull request #1054
Change error retrieval method in ctrl_socket.c
Pink Sky at Sunset
I took this photo over the Christmas period in the Dutch city of Breda.
I walked 8.5km in 1h25m28s
I walked 8.1km in 1h21m10s
I walked 0.8km in 9m03s
I walked 4.8km in 50m12s
Went for a 20k walk through Bushy Park, along the Thames, and through Richmond Park and Wimbledon Common. It was a bit nippy!
I hiked 19.3km in 3h52m02s
Updated a pub
I walked 4.6km in 44m50s
I walked 4.9km in 47m58s
Update Westbourne Green area, now that it is open
I walked 11.9km in 2h3m03s
I walked 9.8km in 1h47m38s
I walked 10.2km in 1h34m25s
Whoop! FOSDEM travel and hotel booked. See you in Brussels at the end of January?
I walked 10.6km in 1h48m23s
I walked 3.0km in 33m38s



Shortlink
This article has a short URL available: https://drck.me/p-xdebug-st-4xw