Class: Byebug::NextCommand
- Defined in:
- lib/byebug/commands/stepping.rb
Overview
Implements the next functionality.
Allows the user the continue execution until the next instruction in the current frame.
Class Method Summary collapse
Instance Method Summary collapse
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?, #without_stderr
Constructor Details
This class inherits a constructor from Byebug::Command
Class Method Details
.description ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/byebug/commands/stepping.rb', line 30 def description prettify <<-EOD n[ext][ nnn] Steps over once or nnn times. EOD end |
.names ⇒ Object
26 27 28 |
# File 'lib/byebug/commands/stepping.rb', line 26 def names %w(next) end |
Instance Method Details
#execute ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/byebug/commands/stepping.rb', line 17 def execute steps, err = parse_steps(@match[1], 'Next') return errmsg(err) unless steps @state.context.step_over(steps, @state.frame) @state.proceed end |
#regexp ⇒ Object
13 14 15 |
# File 'lib/byebug/commands/stepping.rb', line 13 def regexp /^\s* n(?:ext)? (?:\s+(\S+))? \s*$/x end |