class DEBUGGER__::ISeqBreakpoint
Public Class Methods
new(iseq, events, oneshot: false)
click to toggle source
Calls superclass method
DEBUGGER__::Breakpoint::new
# File debug-1.6.3/lib/debug/breakpoint.rb, line 112 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.6.3/lib/debug/breakpoint.rb, line 128 def enable @tp.enable(target: @iseq) end
setup()
click to toggle source
# File debug-1.6.3/lib/debug/breakpoint.rb, line 121 def setup @tp = TracePoint.new(*@events) do |tp| delete if @oneshot suspend end end