class Byebug::UpCommand


Move the current frame up in the backtrace.

def description

def description
  <<-EOD
    up[ count]
    Move to a higher frame in the stack trace.
    Use the "bt" command to find out where you want to go.
  EOD
end

def execute

def execute
  pos, err = parse_steps(@match[1], 'Up')
  return errmsg(err) unless pos
  adjust_frame(pos, false)
  ListCommand.new(@state).execute if Setting[:autolist]
end

def regexp

def regexp
  /^\s* u(?:p)? (?:\s+(\S+))? \s*$/x
end