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 restaurant
I had a good run at Polderprikker today!
#Polderprikker nummer 84 • 4810/5000
🟦1000 🟦1000 🟨879 🟩931 🟦1000
https://polderprikker.nl/I'm looking forward to attending the State of the Map OpenStreetMap conference this coming week in Paris.
Will I see you there?
Even common birds at nice to photograph. Like this Long Tailed Tit.
#photography #Birds #BirdPhotogaphy #BirdsOfMastodon #nature #london #BirdsOfFediverse #wildlife #NaturePhotography
I visited the Rainham Marshes (near London) yesterday for some bird watching.
Got some reasonable close up shots of a Black-tailed Godwit, and a Snipe.
#BirdPhotography #BirdWatching #Photography #NaturePhotography #Bird
Updated a cafe
I hiked 7.1km in 2h52m20s
Updated a pub
I walked 6.2km in 1h2m41s
Merged pull request #1104
Drop support for PHP 8.1
I walked 1.1km in 52m54s
Merged pull request #1103
Drop support for PHP 8.0
Merged pull request #1102
Upgrade composer for benchmarks
Merged pull request #774
PHP 7.4 has not been supported for a while
Fixed issue #1674: Inconsistent Path & Branch Coverage Reported
Merge branch 'xdebug_3_5'
Merged pull request #1101
Fixed issue #2436: Potential crash when remembering on which lines br…
I walked 6.9km in 1h15m47s
I walked 1.3km in 9m40s
I walked 8.0km in 1h30m48s



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