-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allThreadsContinued not respected #33839
Comments
I will move this to VS Code, since the issue is about a client implementation problem. |
The @DatGuyJonathan I believe the only issue you are seeing is that the Closing this as designed. Let me know if things still do not work for you and I will reopen. Also be sure to try with latest vscode insiders. Thanks |
Thanks for the prompt response @isidorn . I use |
@DatGuyJonathan ok in that case we have two options
|
@isidorn , I was using zero-based thread IDs which made clearThreads() in debugModel.ts remove all threads when I continue or thread-exit the first stopped thread. I can fix this on my side to use one-based ID. Maybe that if-statement should be updated as well :) |
@DatGuyJonathan that if statement should be updated :) |
Verified by code inspection. |
From @DatGuyJonathan on August 31, 2017 22:0
I'm working on a debugger extension that supports multiple stopped threads. When the user clicks 'continue', the debug adapter (DA) handles continueRequest with the backend and responds to VS Code with allThreadsContinued = false. The backend will eventually notify DA that the thread has finished, so DA sends a ThreadEvent with reason 'exited' to VS Code.
If I have multiple stopped threads and perform 'continue' on one of them, VS Code removes all the threads from the call stack view. My workaround is to send a stopped event to VS Code for every thread that the DA knows about, but that seems expensive because the DA will have to handle stackTraceRequest for threads that haven't changed.
Is that workaround the expected behavior from DA?
Here are the versions I'm working with:
VS Code: 1.15.0
vscode-debugadapter & vscode-debugprotocol: 1.22.0
Copied from original issue: microsoft/vscode-debugadapter-node#130
The text was updated successfully, but these errors were encountered: