We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0476b3d commit ad1bcb1Copy full SHA for ad1bcb1
lib/debug/session.rb
@@ -127,8 +127,12 @@ def initialize
127
128
@tp_thread_begin = nil
129
@tp_load_script = TracePoint.new(:script_compiled){|tp|
130
- # skip on_load if no bps for faster loading
131
- ThreadClient.current.on_load tp.instruction_sequence, tp.eval_script if @bps.any?
+ if RUBY_VERSION >= '3.1.0'
+ # skip on_load if no bps for faster loading
132
+ ThreadClient.current.on_load tp.instruction_sequence, tp.eval_script if @bps.any?
133
+ else
134
+ ThreadClient.current.on_load tp.instruction_sequence, tp.eval_script
135
+ end
136
}
137
@tp_load_script.enable
138
0 commit comments