This question has been asked before for other IDE's, but what about for PHPStorm? Is there a way to take a step back while debugging?
Specifically after an exception is thrown, I'd like to easily take a step back. Or at least be able to see the call stack so I can quickly see where I need to set the breakpoint, because currently I just have to run again from the beginning and try to stop just before exception.
Using the new Step Backward and Forward buttons So, if you've just taken a step in live debugging (F10 or F11), you can use the Step Backward button to quickly navigate to the previous step. This will automatically put Visual Studio in Historical debugging mode, at the line of code you've stepped back to.
Going to a previously step is not possible in debugging... only option have a new break-point at that point and re-start debugging...
From the main menu, select Run | Debugging Actions | Smart Step Into or press Shift+F7 . Click the method. You can also select it using the arrow keys or tabs and press Enter / F7 .
If the current line contains a function call, Step Over runs the code and then suspends execution at the first line of code after the called function returns. Step Out continues running code and suspends execution when the current function returns. The debugger skips through the current function.
Yes you can take a step back, sort of. The Frames window in the Debugger tab shows the execution path that was taken to get to this point. By default the debugger simply has the current frame selected.
You can easily click any of the frames, or use your arrow key to move up and down to view the state of variables and even the location in the code at that point.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With