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
Created 3 trees, a waste_basket, and a crossing; Updated 2 bus_stops and a crossing; Deleted a convenience shop; Confirmed a shop
Opening hours
Added Mr Francatelli
Created 2 entrances
Updated a clothes shop; Confirmed an alcohol shop
I hiked 7.6km in 4h8m54s
Updated a pub
I walked 8.5km in 1h31m26s
Merge branch 'xdebug_3_5'
Merged pull request #1082
Created an insect_hotel
Created an information
Created 15 benches and 6 waste_baskets; Deleted a life_ring and a waste_basket
I walked 6.4km in 1h27m38s
I walked 1.2km in 10m44s
Added a test case, and some cleanup
Fixed issue #2423: Don't follow symlinks with file creation
Merge branch 'xdebug_3_5'
Merged pull request #1081
Added missing output in xdebug_info() wrt debug options
Fixed issue #2422: No limit on DBGP read buffer
Merge branch 'xdebug_3_5'
Merged pull request #1080
Add test case for issue #2421: Crash with wrong option letter in DBGP…


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