class Byebug::WhereCommand

Implements byebug “where” or “backtrace” command.

def description

def description
  %{w[here]|bt|backtrace\tdisplay stack frames
    Print the entire stack frame. Each frame is numbered, the most recent
    frame is 0. Frame number can be referred to in the "frame" command;
    "up" and "down" add or subtract respectively to frame numbers shown.
    The position of the current frame is marked with -->. C-frames hang
    from their most inmediate ruby frame to indicate that they are not
    navigable}
end

def execute

def execute
  print_backtrace
end

def names

def names
  %w(where backtrace)
end

def regexp

def regexp
  /^\s* (?:w(?:here)?|bt|backtrace) \s*$/x
end