Actions
Bug #19382
closedInfinite loop in tracepoints when calling `pp`
Bug #19382:
Infinite loop in tracepoints when calling `pp`
Description
events = []
meth_name = "mymethod"
code = <<~RUBY
def #{meth_name}(); true; end
RUBY
eval(code, binding, 'my_location')
tracepoint = TracePoint.new(:line) { |tp|
events << tp.path # infinite loop here
}.tap(&:enable)
send("#{meth_name}")
pp events
Actions