Sha256: 8546e6eda5f7db89977f8ae08e67673ea27f2c2cab6e4cb77a06c1c7f7608bb7

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

class PryMoves::NextBreakpoint < PryMoves::TraceCommand

  def init(binding_)
  end

  def trace(event, file, line, method, binding_)
    if binding_.local_variable_defined?(:pry_breakpoint) and
        binding_.local_variable_get(:pry_breakpoint)
      binding_.local_variable_set :pry_breakpoint, nil # reset breakpoint at visited method instance
      true
    end

    # if method.to_s.include? "debug"
    #   @pry_start_options[:initial_frame] = 1
    #   true
    # end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pry-moves-1.0.4 lib/commands/next_breakpoint.rb
pry-moves-1.0.3 lib/commands/next_breakpoint.rb