class DEBUGGER__::ISeqBreakpoint

公共类方法

new(iseq, events, oneshot: false) 点击切换源代码
调用父类方法 DEBUGGER__::Breakpoint::new
# File debug-1.10.0/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

公共实例方法

enable() 点击切换源代码
# File debug-1.10.0/lib/debug/breakpoint.rb, line 128
def enable
  @tp.enable(target: @iseq)
end
setup() 点击切换源代码
# File debug-1.10.0/lib/debug/breakpoint.rb, line 121
def setup
  @tp = TracePoint.new(*@events) do |tp|
    delete if @oneshot
    suspend
  end
end