Sha256: e06ddea966f4876eb274f23453d6482559049e4c529acae2dc12e58276113eb0

Contents?: true

Size: 656 Bytes

Versions: 11

Compression:

Stored size: 656 Bytes

Contents

class PryMoves::NextBreakpoint < PryMoves::TraceCommand

  def init(binding_)
  end

  def trace(event, file, line, method, binding_)
    # this command will stuck in tracing when no breakpoint met (usually)
    PryMoves.messages << "⚠️  Command NextBreakpoint is not implemented"
    return true

    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

11 entries across 11 versions & 1 rubygems

Version Path
pry-moves-1.0.15 lib/commands/next_breakpoint.rb
pry-moves-1.0.14 lib/commands/next_breakpoint.rb
pry-moves-1.0.13 lib/commands/next_breakpoint.rb
pry-moves-1.0.12 lib/commands/next_breakpoint.rb
pry-moves-1.0.11 lib/commands/next_breakpoint.rb
pry-moves-1.0.10 lib/commands/next_breakpoint.rb
pry-moves-1.0.9 lib/commands/next_breakpoint.rb
pry-moves-1.0.8 lib/commands/next_breakpoint.rb
pry-moves-1.0.7 lib/commands/next_breakpoint.rb
pry-moves-1.0.6 lib/commands/next_breakpoint.rb
pry-moves-1.0.5 lib/commands/next_breakpoint.rb