You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code requests a stacktrace. For the"fire" frame inside event dispatching code that he has in the screenshot above, js-debug responds with stacktrace id A (in the log, 692)
Rob steps over a statement.
We continue and stop again, as expected. VS Code requests a new stacktrace.
VS Code requests a new stacktrace for this location. This time, the "fire" frame has a frame id B (in the log, 722)--for us stacktraces are ephemeral and we just auto-increment for each new set of data from CDP.
Rob clicks on the "fire" frame, but it sends a request with id A that we no longer have 🐛
Repro case, seems somewhat inconsistent but it happens eventually when stepping over a++:
functionfoo(){leta=0;// paused in here, you can see the parent stack. Now, step over...debugger;// somewhere here, clicking on the parent frame results in the error:a++;a++;a++;}foo();
@roblourens thanks for filling great issues @connor4312 thanks for making good repro steps
The issues was the following: we are doing delayed call stack loading which means we first fetch the top then the rest. If the rest is same as in previous step we do not fire a change event to reduce tree flashing. The issue was in our equality check for frames. We were not checking that the frameId were equal which was very much wrong.
I don't see anything obvious in the log?
vscode-debugadapter-7.json.txt
The text was updated successfully, but these errors were encountered: