class Byebug::WhereCommand
Implements byebug “where” or “backtrace” command.
def execute
def execute print_backtrace if truncated_callstack?(@state.context, Byebug.start_sentinal) print "Warning: saved frames may be incomplete; compare with caller(0).\n" end end
def help(cmd)
def help(cmd) s = if cmd == 'where' %{ w[here]\tdisplay stack frames } else %{ bt|backtrace\t\talias for where - display stack frames } end s += %{ 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 -->. } end
def help_command
def help_command %w|where backtrace| end
def regexp
def regexp /^\s*(?:w(?:here)?|bt|backtrace)$/ end