Class: Byebug::UpCommand
- Includes:
- Helpers::FrameHelper, Helpers::ParseHelper
- Defined in:
- lib/byebug/commands/up.rb
Overview
Move the current frame up in the backtrace.
Instance Method Summary collapse
Methods included from Helpers::ParseHelper
#get_int, #parse_steps, #syntax_valid?, #without_stderr
Methods included from Helpers::FrameHelper
#adjust_frame, #get_pr_arguments, #navigate_to_frame, #switch_to_frame
Methods inherited from Command
#help, #initialize, #match, subcommands, to_name
Methods included from Helpers::StringHelper
Constructor Details
This class inherits a constructor from Byebug::Command
Instance Method Details
#description ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/byebug/commands/up.rb', line 29 def description <<-EOD up[ count] Move to a higher frame in the stack trace. Use the "bt" command to find out where you want to go. EOD end |
#execute ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/byebug/commands/up.rb', line 20 def execute pos, err = parse_steps(@match[1], 'Up') return errmsg(err) unless pos adjust_frame(pos, false) ListCommand.new(@state).execute if Setting[:autolist] end |
#regexp ⇒ Object
16 17 18 |
# File 'lib/byebug/commands/up.rb', line 16 def regexp /^\s* u(?:p)? (?:\s+(\S+))? \s*$/x end |