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
Specify whether pitches are lit
Specify leaf types
Survey whether benches have backrests
Survey wheelchair accessibility of outside places
Specify whether kerbs have tactile paving
Determine the heights of kerbs
Specify bicycle parkings covers
Specify parking types
Specify whether public transport stops have tactile paving
Specify whether traffic signals have sound signals
Specify whether traffic signals have a button for pedestrians
Specify whether traffic signals have tactile indications that it's safe to cross
Survey postbox collection times
Survey whether laundries provide self-service
Survey opening hours
Survey housenumbers
Specify motorcycle parking capacities
Specify motorcycle parkings covers
Specify parking access
Survey if places still exist
Specify whether roads have sidewalks
Specify cycleways width
Specify cycleway path surfaces
Add footway path surfaces
Specify whether crosswalks have tactile paving

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