class Byebug::WhereCommand
Show current backtrace.
def description
def description prettify <<-EOD w[here]|bt|backtrace Display stack frames. Print the entire stack frame. Each frame is numbered; the most recent frame is 0. A 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 immediate Ruby frame to indicate that they are not navigable. EOD end
def execute
def execute print_backtrace end
def names
def names %w(where backtrace bt) end
def print_backtrace
def print_backtrace bt = prc('frame.line', (0...@state.context.stack_size)) do |_, index| get_pr_arguments(index) end print(bt) end
def regexp
def regexp /^\s* (?:w(?:here)?|bt|backtrace) \s*$/x end