Skip to content

Commit 949562d

Browse files
committed
skip check for pending breakpoints if no breakpoints are present
1 parent 2cb4448 commit 949562d

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
@@ -126,7 +126,8 @@ def initialize
126126

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

0 commit comments

Comments
 (0)