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
{{ message }}
Repository navigation
Threads are not fetched after restarting debug adapter #88784
Restart the debug adapter using the restart button
Observer that pause no longer works
Does this issue occur when all extensions are disabled?: Yes/No
The commit d527e92 is used to slow down fetching threads from a debug adapter. However, when using the default restart mechanism, fetchThreadsScheduler is disposed (via dispose(this.rawListeners); and therefore no longer runs after restarting the debug adapter.
The specification says "A debug adapter is expected to send this event when it is ready to accept configuration requests (but not before the ‘initialize’ request has finished)."
So either the specification needs to say "required" instead of "expected" or there is a bug in VS Code. VS Code doesn't seem to correctly handle the situation where the debug adapter never sends InitializedEvent. Although the fix may be to create a new debug session object instead of the fix that I have proposed.
Simply removing the line that sends InitializedEvent from the mock debug unfortunately extension doesn't seem to be enough to reproduce the problem, but since I found a workaround, I can't really justify spending more time on it.
Activity
New "pause" button on debugger that sends SIGINT to remote process
isidorn commentedon Jan 16, 2020
Thanks for filling this issue.
Can you be so kind to fork Mock Debug https://github.com/microsoft/vscode-mock-debug and to create changes on top of it such that this issue is reproducable.
Since I can not reproduce it using node - gif attached
dlech commentedon Jan 16, 2020
It looks like I was missing sending an
InitializedEventso the same debug session was being reused after restart.dlech commentedon Jan 16, 2020
I also made this comment in the pull request:
The specification says "A debug adapter is expected to send this event when it is ready to accept configuration requests (but not before the ‘initialize’ request has finished)."
So either the specification needs to say "required" instead of "expected" or there is a bug in VS Code. VS Code doesn't seem to correctly handle the situation where the debug adapter never sends
InitializedEvent. Although the fix may be to create a new debug session object instead of the fix that I have proposed.dlech commentedon Jan 16, 2020
Simply removing the line that sends
InitializedEventfrom the mock debug unfortunately extension doesn't seem to be enough to reproduce the problem, but since I found a workaround, I can't really justify spending more time on it.Fix threads not fetched after restarting debug adapter
isidorn commentedon Jan 21, 2020
David Lechner (@dlech) did you verify that this works with the latest VS Code insiders as expected?