class DEBUGGER__::ISeqBreakpoint
Public Class Methods
new(iseq, events, oneshot: false)
click to toggle source
Calls superclass method
DEBUGGER__::Breakpoint::new
# File debug-1.7.1/lib/debug/breakpoint.rb, line 116 def initialize iseq, events, oneshot: false @events = events @iseq = iseq @oneshot = oneshot @key = [:iseq, @iseq.path, @iseq.first_lineno].freeze super(nil, nil, nil) end
Public Instance Methods
enable()
click to toggle source
# File debug-1.7.1/lib/debug/breakpoint.rb, line 132 def enable @tp.enable(target: @iseq) end
setup()
click to toggle source
# File debug-1.7.1/lib/debug/breakpoint.rb, line 125 def setup @tp = TracePoint.new(*@events) do |tp| delete if @oneshot suspend end end