Class: Byebug::DownCommand
- Includes:
- Helpers::FrameHelper, Helpers::ParseHelper
- Defined in:
- lib/byebug/commands/down.rb
Overview
Move the current frame down in the backtrace.
Instance Attribute Summary
Attributes inherited from Command
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Helpers::ParseHelper
#get_int, #parse_steps, #syntax_valid?
Methods included from Helpers::FrameHelper
#jump_frames, #switch_to_frame
Methods inherited from Command
#arguments, columnize, #context, #frame, help, #initialize, match, to_s
Methods included from Helpers::StringHelper
Constructor Details
This class inherits a constructor from Byebug::Command
Class Method Details
.description ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/byebug/commands/down.rb', line 20 def self.description <<-EOD down[ count] #{short_description} Use the "bt" command to find out where you want to go. EOD end |
.regexp ⇒ Object
16 17 18 |
# File 'lib/byebug/commands/down.rb', line 16 def self.regexp /^\s* down (?:\s+(\S+))? \s*$/x end |
.short_description ⇒ Object
30 31 32 |
# File 'lib/byebug/commands/down.rb', line 30 def self.short_description 'Moves to a lower frame in the stack trace' end |
Instance Method Details
#execute ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/byebug/commands/down.rb', line 34 def execute pos, err = parse_steps(@match[1], 'Down') return errmsg(err) unless pos jump_frames(-pos) ListCommand.new(processor).execute if Setting[:autolist] end |