Class: Byebug::WhereCommand
Overview
Implements byebug “where” or “backtrace” command.
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, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
167
168
169
170
171
172
173
174
175
176
|
# File 'lib/byebug/commands/frame.rb', line 167
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
|
.names ⇒ Object
163
164
165
|
# File 'lib/byebug/commands/frame.rb', line 163
def names
%w(where backtrace)
end
|
Instance Method Details
#execute ⇒ Object
158
159
160
|
# File 'lib/byebug/commands/frame.rb', line 158
def execute
print_backtrace
end
|
#regexp ⇒ Object
154
155
156
|
# File 'lib/byebug/commands/frame.rb', line 154
def regexp
/^\s* (?:w(?:here)?|bt|backtrace) \s*$/x
end
|