Class: Byebug::FrameCommand
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
|
# File 'lib/byebug/commands/frame.rb', line 263
def help(cmd)
%{
f[rame][ frame-number]
Move the current frame to the specified frame number, or the 0 if no
frame-number has been given.
A negative number indicates position from the other end, so "frame -1"
moves to the oldest frame, and "frame 0" moves to the newest frame.
Without an argument, the command prints the current stack frame. Since
the current position is redisplayed, it may trigger a resyncronization
if there is a front end also watching over things.
}
end
|
.names ⇒ Object
259
260
261
|
# File 'lib/byebug/commands/frame.rb', line 259
def names
%w(frame)
end
|
Instance Method Details
#execute ⇒ Object
248
249
250
251
252
253
254
255
256
|
# File 'lib/byebug/commands/frame.rb', line 248
def execute
if not @match[1]
pos = 0
else
pos = get_int(@match[1], "Frame")
return unless pos
end
adjust_frame(pos, true)
end
|
#regexp ⇒ Object
241
242
243
244
245
246
|
# File 'lib/byebug/commands/frame.rb', line 241
def regexp
/ ^\s*
f(?:rame)?
(?: \s+ (\S+))? \s*
$/x
end
|