Watches do not work within stack trace.

As you can see from the attached image, watches do not work when stepped back through the call trace.

Interestingly though, the variables are visible within the variables pane.

Also, highlighting a variable in the main code window also does not work.

2 comments
Avatar
Vladimir Luchansky
Comment actions Permalink

Hello,

There's no step back in terms of debugging in PhpStorm - Frames tab shows you the execution path but that's not a real step back.

Xdebug does not support step back - you need to re-run the program and get to the point of interest to get the actual data from there.

0
Comment actions Permalink

Only partially unrelated to the actual subject .. but still.

>Xdebug does not support step back - you need to re-run the program and get to the point of interest to get the actual data from there.

Indeed.

But .. you may use Dontbug reverse debugger: record and then playback the xdebug session changing the way (forward or backward) as needed. Works with PhpStorm as well.

Notes:

  • "beta-level" quality
  • possibly not maintained any more
  • requires Linux OS and extension compiling from sources
0

Please sign in to leave a comment.