While stepping, VS Code debugger periodically disconnects #1947
Labels
bug
Issue identified by VS Code Team member as probable bug
*duplicate
Issue identified as a duplicate of another issue(s)
Description
While stepping through code in VS Code, the debugger periodically detaches - program execution is stopped, but VS Code appears to be running, not on a breakpoint (the pause button is enabled but does nothing, and the play button is not visible). I am attached to Chrome, and if I switch to Chrome dev tools I can see the DevTools debugger stopped on the line that I expected to step to in VS Code.
If I continue stepping in Chrome I can often get to a point where the active line re-appears in VS Code, and then I can continue stepping in VS Code until this occurs again.
To Reproduce
Unfortunately I don't have a repro case, but I do have a consistent stack trace. Each time this happens, I see this error in the Extension Host Output window, which definitely seems related:
Based on this error, my guess is that
script.url
isundefined
here:vscode-js-debug/src/adapter/threads.ts
Line 1936 in 19cd302
Log File
Will review and try to provide...
VS Code Version:
Version: 1.86.2 (user setup)
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:40:56.878Z
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22631
The text was updated successfully, but these errors were encountered: