Looks at this! The next Xdebug release (3.2) will have an extra "return from function" debugging step, in which you can inspect the return value.

It even works with fluent APIs!

But it does need some support in IDEs, as they need to enable the feature.

I'll be working with Jetbrains and Damjan Cvetko to get this into PhpStorm and the PHP Debug Adapter for Visual Studio Code.

Sign in to participate in the conversation
Mastodon

The original server operated by the Mastodon gGmbH non-profit