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