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
Updated a pet_grooming shop; Deleted a dry_cleaning shop; Confirmed 2 variety_store shops, a fitness_centre, and a convenience shop
Map new layout of Meanwhile Gardens
I walked 10.4km in 1h45m58s
This is probably the shortest chapter I've ever read in any book. And it'll likely stay like that.
Created a bench
Created 10 benches, 3 climbingframes, and 3 other objects; Updated a bicycle_parking and a bench; Deleted a bench
I walked 8.5km in 1h34m09s
Whoop! PHP London is meeting again next week: https://meetu.ps/e/PXrS6/2XF6m/i
Created a massage shop; Confirmed an estate_agent office, a pet_grooming shop, and 2 other objects
I walked 9.9km in 1h50m43s
Add Canteen building back in, with additional tags
Twyford Station footpahts and road layout
Created 2 crossings and an insect_hotel
Created a bicycle_parking; Updated a bench
Updated a cafe
I walked 6.7km in 1h5m45s
Updated a bench; Deleted a bench
Created 5 gates, a crossing, and 3 other objects
Created a fast_food and a recycling; Updated 2 crossings and a bus_stop
I hiked 23.4km in 5h14m54s
I've finished reading Children of Memory, the third book in the series.
Another interesting take on forms of intelligent life.
A fourth one is going to get released later this year.
Updated a post_box, a beauty shop, and a restaurant; Confirmed 2 clothes shops, 2 pet shops, and a restaurant
I walked 5.9km in 1h40m39s
Updated a bicycle_parking



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