debuggingxdebugxdebug-3phpstorm-2018.1

How to step back debugging in PhpStorm?


I am searching for an option to step back debug in PhpStorm using Xdebug. Where is this option?

Thx in advanced for every constructive help! Here is method, which will be called from anywhere

enter image description here

I want to know code, which is calling upper method. Here are PhpStorm debug options:

enter image description here

I tried to find symbols, but I didn't succeed.


Solution

  • "step back"? As in, "move execution point back, to the previously executed line"? There is no such stuff in Xdebug.

    There was Dontbug Debugger project like 8 or so years ago, that could allow going backwards, but it was an experiment only.


    Your 2nd screenshots show what you need -- the Stack Trace (on the left side). By default, it has the current frame selected -- the line where it says AuthController.php:39.

    enter image description here

    You can click on previous stacks there (e.g. HttpKernel.php:181) and it will take you to the calling place in the editor as well as show the variables and their values for that place.

    https://www.jetbrains.com/help/phpstorm/navigating-from-stacktrace-to-source-code.html


    Related: PhpStorm take a step back in debugger