Class: Byebug::UpCommand
- Includes:
- FrameFunctions
- Defined in:
- lib/byebug/commands/frame.rb
Overview
Move the current frame up in the backtrace.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from FrameFunctions
#adjust_frame, #get_pr_arguments, #navigate_to_frame, #switch_to_frame
Methods inherited from Command
commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, #match
Methods included from StringFunctions
Methods included from FileFunctions
#get_line, #get_lines, #n_lines, #normalize
Methods included from ParseFunctions
#get_int, #parse_steps, #syntax_valid?
Constructor Details
This class inherits a constructor from Byebug::Command
Class Method Details
.description ⇒ Object
132 133 134 135 136 |
# File 'lib/byebug/commands/frame.rb', line 132 def description prettify <<-EOD up[ count] Move to higher frame. EOD end |
.names ⇒ Object
128 129 130 |
# File 'lib/byebug/commands/frame.rb', line 128 def names %w(up) end |
Instance Method Details
#execute ⇒ Object
120 121 122 123 124 125 |
# File 'lib/byebug/commands/frame.rb', line 120 def execute pos, err = parse_steps(@match[1], 'Up') return errmsg(err) unless pos adjust_frame(pos, false) end |
#regexp ⇒ Object
116 117 118 |
# File 'lib/byebug/commands/frame.rb', line 116 def regexp /^\s* u(?:p)? (?:\s+(\S+))? \s*$/x end |