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 roads have lane markings
Survey tactile paving on steps
Specify whether steps have a ramp
Determine roads lane count
Specify path surfaces
Specify whether crosswalks have tactile paving
Specify whether there are cycleways
Determine the heights of kerbs at crossings
Specify motorcycle parking fees
Specify motorcycle parking capacities
Specify parking access
Specify whether pedestrian crossings have islands
Specify parking types
Specify road surfaces
Specify whether roads have sidewalks
Green Sandpiper Stalking
These birds forage on shorelines, probing the mud with their long beaks. They're not too disilimar from Common Sandpipers, which are interestingly less common.
#photography #Birds #BirdPhotography #BirdsOfFediverse #NaturePhotography #wildlife #Norfolk
#Polderprikker nummer 125 • 4789/5000
🟦1000 🟩967 🟦1000 🟨896 🟩926
https://polderprikker.nl/Easy one for me :-)
I hiked 7.7km in 5h21m29s
Created a defibrillator
I walked 8.7km in 2h13m53s
Juvenile Linnet Perched Upon A Bush
There were many of these birds, but few stayed still long enough for a photo.
#photography #Birds #BirdPhotography #BirdsOfFediverse #NaturePhotography #wildlife #Norfolk
Mirrored Snipe
One of the many birds that came close to the hide in Titchwell Marsh. Spend ages foraging.
#photography #Birds #BirdPhotography #BirdsOfFediverse #NaturePhotography #wildlife #Norfolk
I walked 8.0km in 1h28m55s
Merge branch 'xdebug_3_5'
Merged pull request #1108




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