Class Debugger::NextCommand
In: cli/ruby-debug/commands/stepping.rb
Parent: Command

Implements debugger "next" command.

Methods

execute   help   help_command   regexp  

Public Class methods

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 39
39:       def help(cmd)
40:         %{
41:           n[ext][+-]?[ nnn]\tstep over once or nnn times, 
42:           \t\t'+' forces to move to another line.
43:           \t\t'-' is the opposite of '+' and disables the force_stepping setting.
44:         }
45:       end

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 35
35:       def help_command
36:         'next'
37:       end

Public Instance methods

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 27
27:     def execute
28:       steps, force = parse_stepping_args("Next", @match)
29:       return unless steps
30:       @state.context.step_over steps, @state.frame_pos, force
31:       @state.proceed
32:     end

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 21
21:     def regexp
22:       /^\s* n(?:ext)? 
23:         ([+-])?(?:\s+(\S+))? 
24:         \s*$/x
25:     end

[Validate]