Skip to content
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

dap: support suspendDebuggee in multi-client mode #3003

Closed
wants to merge 4 commits into from

Conversation

polinasok
Copy link
Collaborator

@polinasok polinasok commented May 5, 2022

Upstream dependency at microsoft/vscode#134412 is in, so we can now provide this in our DA to give people more disconnect options.

- disconnect            = leaves debugger and target running (default)
- disconnect + suspend  = leaves debugger and target suspended
- stop                  = kills  debugger and target

Updates #2772

@polinasok
Copy link
Collaborator Author

Actually give me a moment to revise something before reviewing.

@polinasok polinasok force-pushed the remoteSuspend branch 2 times, most recently from 6751910 to ed1827f Compare May 18, 2022 22:33
if request.Arguments.SuspendDebuggee {
status = "suspended"
s.changeStateMu.Lock()
defer s.changeStateMu.Unlock()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This defer gets executed when the function exits. Is this really the intended scope? There's a lot of code after this if/else that will get executed either with or without holding the mutex.

@derekparker derekparker added this to the v1.9.1 milestone Jul 5, 2022
@derekparker
Copy link
Member

Going to close for now due to inactivity. Please reopen if this is still necessary / planned to be worked on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants