Skip to content

Commit 0476b3d

Browse files
WillHaltoko1
authored andcommitted
skip check for pending breakpoints if no breakpoints are present
1 parent b5ce120 commit 0476b3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/debug/session.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ def initialize
127127

128128
@tp_thread_begin = nil
129129
@tp_load_script = TracePoint.new(:script_compiled){|tp|
130-
ThreadClient.current.on_load tp.instruction_sequence, tp.eval_script
130+
# skip on_load if no bps for faster loading
131+
ThreadClient.current.on_load tp.instruction_sequence, tp.eval_script if @bps.any?
131132
}
132133
@tp_load_script.enable
133134

0 commit comments

Comments
 (0)