Class: Byebug::WhereCommand
Overview
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match
Class Method Details
.description ⇒ Object
171
172
173
174
175
176
177
178
179
180
|
# File 'lib/byebug/commands/frame.rb', line 171
def description
%(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.)
end
|
.names ⇒ Object
167
168
169
|
# File 'lib/byebug/commands/frame.rb', line 167
def names
%w(where backtrace bt)
end
|
Instance Method Details
#execute ⇒ Object
162
163
164
|
# File 'lib/byebug/commands/frame.rb', line 162
def execute
print_backtrace
end
|
#regexp ⇒ Object
158
159
160
|
# File 'lib/byebug/commands/frame.rb', line 158
def regexp
/^\s* (?:w(?:here)?|bt|backtrace) \s*$/x
end
|