class Byebug::StepCommand

Implements byebug “step” command.

def description

def description
  %{
    s[tep][+-]?[ nnn]\tstep (into methods) once or nnn times
    \t\t'+' forces to move to another line.
    \t\t'-' is the opposite of '+' and disables the :forcestep setting.
   }
end

def execute

def execute
  steps, force = parse_stepping_args("Step", @match)
  return unless steps
  @state.context.step_into steps, force
  @state.proceed
end

def names

def names
  %w(step)
end

def regexp

def regexp
  /^\s* s(?:tep)?([+-]) ?(?:\s+(\S+))? \s*$/x
end