Class: Byebug::WhereCommand
Overview
Implements byebug “where” or “backtrace” command.
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
120
121
122
123
124
125
126
127
|
# File 'lib/byebug/commands/frame.rb', line 120
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 -->.}
end
|
.names ⇒ Object
116
117
118
|
# File 'lib/byebug/commands/frame.rb', line 116
def names
%w(where backtrace)
end
|
Instance Method Details
#execute ⇒ Object
111
112
113
|
# File 'lib/byebug/commands/frame.rb', line 111
def execute
print_backtrace
end
|
#regexp ⇒ Object
107
108
109
|
# File 'lib/byebug/commands/frame.rb', line 107
def regexp
/^\s*(?:w(?:here)?|bt|backtrace)$/
end
|