Skip to content

Commit dc3f88c

Browse files
committed
cleanup old breakpoints when forked
1 parent 58f8045 commit dc3f88c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ruby-debug-ide/multiprocess/pre_child.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def pre_child
4343
def start_debugger(options)
4444
if Debugger.started?
4545
#we're in forked child, only need to restart control thread
46+
Debugger.breakpoints.clear
4647
Debugger.control_thread = nil
4748
Debugger.start_control(options.host, options.port)
4849
end
@@ -54,7 +55,7 @@ def start_debugger(options)
5455

5556
# set options
5657
Debugger.keep_frame_binding = options.frame_bind
57-
Debugger.tracing = options.tracing
58+
Debugger.tracing = options.tracing
5859

5960
Debugger.prepare_debugger(options)
6061
end

0 commit comments

Comments
 (0)