Skip to content

Commit 0f2e14f

Browse files
st0012ko1
authored andcommitted
Perform disconnection cleanup and return response before killing debuggee
1 parent 3fdcfef commit 0f2e14f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/debug/server_dap.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ def process
348348
when 'disconnect'
349349
terminate = args.fetch("terminateDebuggee", false)
350350

351+
SESSION.clear_all_breakpoints
352+
send_response req
353+
351354
if SESSION.in_subsession?
352355
if terminate
353356
@q_msg << 'kill!'
@@ -361,9 +364,6 @@ def process
361364
end
362365
end
363366

364-
SESSION.clear_all_breakpoints
365-
send_response req
366-
367367
## control
368368
when 'continue'
369369
@q_msg << 'c'

0 commit comments

Comments
 (0)