Debugging with Smart Step-into
While debugging PHP code, we may sometimes reach a line of code which calls several methods. When debugging these lines of code, the debugger typically allows us to use Step Into and leads us through all child functions and then back to the parent function. But what if we only wanted to step into one child function? With Smart Step-Into in the PhpStorm 7 EAP, we’ve reintroduced a handy feature which does just that: it allows us to choose the function to step into.
In the above example, merge_strings(hello(), world()), the debugger would step into hello(), then world() and finally merge_strings(). If we use Smart Step-Into from the Run | Smart Step Into menu or by pressing Shift+F7, PhpStorm will allow us to choose the function to step into:
Note that this functionality also works with more dynamic function calls:
Develop with pleasure!
– JetBrains PhpStorm Team
Subscribe to Blog updates
PhpStorm 2024.1 Early Access Program Is Now Open
This EAP build brings support for PHPUnit 11, improvements for the Pest test framework, and more.
PhpStorm 2023.3 Is Now Available
Explore the new features in PhpStorm 2023.3: support for PHP 8.3, the Pest test framework, improvements for Symfony projects and AI Assistant.
PhpStorm 2023.3 RC
PhpStorm 2023.3 Release Candidate bundles the Pest plugin into PhpStorm, so you'll now be able to enjoy it out of the box.