Class: Debugger::NextCommand
- Inherits:
-
Command
- Object
- Command
- Debugger::NextCommand
show all
- Defined in:
- lib/ruby-debug/commands/stepping.rb
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, inherited, #initialize, load_commands, #match, method_missing, options
Class Method Details
.help(cmd) ⇒ Object
20
21
22
23
24
|
# File 'lib/ruby-debug/commands/stepping.rb', line 20
def help(cmd)
%{
n[ext][ nnn]\tgo over one line or till line nnn
}
end
|
.help_command ⇒ Object
16
17
18
|
# File 'lib/ruby-debug/commands/stepping.rb', line 16
def help_command
'next'
end
|
Instance Method Details
#execute ⇒ Object
9
10
11
12
13
|
# File 'lib/ruby-debug/commands/stepping.rb', line 9
def execute
steps = @match[1] ? @match[1].to_i : 1
@state.context.step_over steps, @state.frame_pos
@state.proceed
end
|
#regexp ⇒ Object
5
6
7
|
# File 'lib/ruby-debug/commands/stepping.rb', line 5
def regexp
/^\s*n(?:ext)?(?:\s+(\d+))?$/
end
|