Parent

Files

Debugger::NextCommand

Implements debugger “next” command.

Public Class Methods

help(cmd) click to toggle source
# File cli/ruby-debug/commands/stepping.rb, line 39
def help(cmd)
  %{
    n[ext][+-]?[ nnn]\tstep over once or nnn times, 
    \t\t'+' forces to move to another line.
    \t\t'-' is the opposite of '+' and disables the force_stepping setting.
  }
end
help_command() click to toggle source
# File cli/ruby-debug/commands/stepping.rb, line 35
def help_command
  'next'
end

Public Instance Methods

execute() click to toggle source
# File cli/ruby-debug/commands/stepping.rb, line 27
def execute
  steps, force = parse_stepping_args("Next", @match)
  return unless steps
  @state.context.step_over steps, @state.frame_pos, force
  @state.proceed
end
regexp() click to toggle source
# File cli/ruby-debug/commands/stepping.rb, line 21
def regexp
  /^\s* n(?:ext)? 
    ([+-])?(?:\s+(\S+))? 
    \s*$/
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.