Class: Debugger::FrameCommand
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
#adjust_frame
Methods inherited from Command
commands, file_filter_supported?, #find, inherited, #initialize, load_commands, #match, method_missing, options, unescape_incoming
Class Method Details
.help(cmd) ⇒ Object
143
144
145
146
147
148
149
150
151
152
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 143
def help(cmd)
%{
f[rame] frame-number
Move the current frame to the specified frame number.
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.
}
end
|
.help_command ⇒ Object
139
140
141
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 139
def help_command
'frame'
end
|
Instance Method Details
#execute ⇒ Object
127
128
129
130
131
132
133
134
135
136
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 127
def execute
if not @match[1]
print "Missing a frame number argument.\n"
return
else
pos = get_int(@match[1], "Frame")
return unless pos
end
adjust_frame(pos, true)
end
|
#regexp ⇒ Object
123
124
125
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 123
def regexp
/^\s* f(?:rame)? (?:\s+ (.*))? \s*$/x
end
|