Skip to content

Perform disconnection cleanup and return response before killing debuggee #721

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

Merged
merged 1 commit into from
Aug 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ def process
when 'disconnect'
terminate = args.fetch("terminateDebuggee", false)

SESSION.clear_all_breakpoints
send_response req

if SESSION.in_subsession?
if terminate
@q_msg << 'kill!'
Expand All @@ -361,9 +364,6 @@ def process
end
end

SESSION.clear_all_breakpoints
send_response req

## control
when 'continue'
@q_msg << 'c'
Expand Down