Xdebug Update: February 2022
In this monthly update I explain what happened with Xdebug development in this past month. These are normally published on the first Tuesday after the 5th of each month.
Patreon and GitHub supporters will get it earlier, around the first of each month.
You can become a patron or support me through GitHub Sponsors. I am currently 46% towards my $2,500 per month goal. If you are leading a team or company, then it is also possible to support Xdebug through a subscription.
In February, I spend 26 hours on Xdebug, with 24 hours funded.
Releases and Development
As first task in February I released Xdebug 3.1.3 which addressed a bug with the debugging protocol's eval command and exceptions, an issue with the debugger generating invalid XML, and a memory leak and performance issue with tracing.
Since then I have worked on triaging and fixing a few more issues. These have currently not been merged due to changes in GitHub Action's Windows support. I expect that to be resolved by the time you read this.
Fixes include a crash while using closures and static properties, something that Symfony Cache seems to use a lot, some memory leaks, and an issue with the legacy XDEBUG_SESSION_START trigger. I expect Xdebug 3.1.4 to be released imminently.
Priorities
In the previous update I wrote about what I had in mind for this coming year. From feedback to this communique, and a highly scientific Twitter poll I've decided to prioritise the following items:
-
Creating an Xdebug Course: explaining in great detail how Xdebug works, how you use it, how you can get the most out of it, and many scenarios on how to set-up debugging in different environments. This needs to go beyond referential documentation pages, and will hence become a combined set of videos and tutorials, with examples and work-along exercises.
-
Xdebug Recorder and Player: A new feature in Xdebug which would allow for a full request to be stored in a file, including every intermediate state. Combined with a player, which would allow for replaying the request and interrogating every variable at every point during the execution of said script, through the debugging protocol and interacting with your IDE. The recorded files would be self contained, without needing access to the (original) source code. Besides "step over" it would also have a "step back", and perhaps even a slider to slide back and forwards through time.
I have started making an outline for the Course, and a prototype for the Recorder and Player.
Let me know if you have ideas about which specific topics the Course should offer.
Xdebug Cloud
Xdebug Cloud is the Proxy As A Service platform to allow for debugging in more scenarios, where it is hard, or impossible, to have Xdebug make a connection to the IDE. It is continuing to operate as Beta release. Packages start at £49/month.
If you want to be kept up to date with Xdebug Cloud, please sign up to the mailinglist, which I will use to send out an update not more than once a month.
Xdebug Videos
I have published one more video on how to use Xdebug on my YouTube channel.
-
Debugging Unit Tests with PhpStorm explains how to use PhpStorm to debug Unit Tests, following a question on Twitter.
Business Supporter Scheme and Funding
In February, no new business supporter signed up.
If you, or your company, would also like to support Xdebug, head over to the support page!
Besides business support, I also maintain a Patreon page and a profile on GitHub sponsors.
Life Line
Updated a restaurant
I walked 9.6km in 2h5m58s
I walked 7.2km in 1h10m18s
Updated a pet_grooming shop; Deleted a dry_cleaning shop; Confirmed 2 variety_store shops, a fitness_centre, and a convenience shop
I walked 4.1km in 47m50s
I walked 1.2km in 9m08s
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


Shortlink
This article has a short URL available: https://drck.me/xdebug-22feb-h1y