Xdebug Update: May 2022
In this monthly update I explain what happened with Xdebug development in this past month. These are normally published on the first Tuesday on or 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 May, I spend 25 hours on Xdebug, with 27 hours funded.
Development
I continued my exploration of different set-ups that developers use, and have now merged the branch that adds support for the "pseudo-hosts" xdebug://gateway and xdebug://nameserver, which can be used with the xdebug.client_host setting instead of, and in addition to the Docker specific host.docker.internal. This pseudo-host automatically evaluates to the network gateway address, or name server as defined in /etc/resolv.conf, in the container, which will then allow Xdebug to connect to an IDE on the host machine.
I have not figured out how to do it will all different set-ups, so if you have extra information, or if I am still missing set-ups, feel free to comment on the Google Doc.
In the more complicated set-ups, it would likely be easier to use Xdebug Cloud as it has none of these networking complications.
The other big feature that I have worked on is the introduction of the capture of return values while debugging. This feature allows you to step into the "return value from function" phase, where PHP returns a value to the caller function. In this step, there will only be one variable available, which is the return value of that function.
Right now IDEs will have to opt into this new feature, with PhpStorm and the VS Code Plug-in teams confirming that they will make changes for this.
In this GIF you can see how this is useful with fluent interfaces:
Course
I have now recorded the first lesson of the course, and I am editing it with the plan to release this in the next few weeks. It will take a little time, as I need to get into the flow of editing and producing them; and of course, a new web site needs to be constructed as well. Stay tuned!
For further lessons I have started to draft outlines, and they are in different states of completion.
If you want to make sure that the course covers specific tasks that you find hard to do, or what you would like explained, please drop me an email, or leave a comment.
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 new video this month:
You can find all previous videos on my YouTube channel.
Business Supporter Scheme and Funding
In May, no new business supporters 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 pet_grooming shop; Deleted a dry_cleaning shop; Confirmed 2 variety_store shops, a fitness_centre, and a convenience shop
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
I hiked 23.4km in 5h14m54s
I've finished reading Children of Memory, the third book in the series.
Another interesting take on forms of intelligent life.
A fourth one is going to get released later this year.
Updated a post_box, a beauty shop, and a restaurant; Confirmed 2 clothes shops, 2 pet shops, and a restaurant
I walked 5.9km in 1h40m39s
Updated a bicycle_parking



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