Skip to content

Commit

Permalink
Perform disconnection cleanup and return response before killing debu…
Browse files Browse the repository at this point in the history
…ggee
  • Loading branch information
st0012 authored and ko1 committed Aug 10, 2022
1 parent 3fdcfef commit 0f2e14f
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 0f2e14f

Please sign in to comment.