Class: Debugger::NextCommand
- Inherits:
-
Command
- Object
- SimpleDelegator
- Command
- Debugger::NextCommand
show all
- Defined in:
- lib/ruby-debug-ide/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, file_filter_supported?, #find, inherited, #initialize, load_commands, #match, method_missing, options, unescape_incoming
Class Method Details
.help(cmd) ⇒ Object
21
22
23
24
25
26
|
# File 'lib/ruby-debug-ide/commands/stepping.rb', line 21
def help(cmd)
%{
n[ext][+][ nnn]\tstep over once or nnn times,
\t\t'+' forces to move to another line
}
end
|
.help_command ⇒ Object
17
18
19
|
# File 'lib/ruby-debug-ide/commands/stepping.rb', line 17
def help_command
'next'
end
|
Instance Method Details
#execute ⇒ Object
9
10
11
12
13
14
|
# File 'lib/ruby-debug-ide/commands/stepping.rb', line 9
def execute
force = @match[1] == '+'
steps = @match[2] ? @match[2].to_i : 1
@state.context.step_over steps, @state.frame_pos, force
@state.proceed
end
|
#regexp ⇒ Object
5
6
7
|
# File 'lib/ruby-debug-ide/commands/stepping.rb', line 5
def regexp
/^\s*n(?:ext)?([+-])?(?:\s+(\d+))?$/
end
|