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

Implements debugger "step" command.

Methods

execute   help   help_command   regexp  

Public Class methods

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 72
72:       def help(cmd)
73:         %{
74:           s[tep][+-]?[ nnn]\tstep (into methods) once or nnn times
75:           \t\t'+' forces to move to another line.
76:           \t\t'-' is the opposite of '+' and disables the force_stepping setting.
77:         }
78:       end

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 68
68:       def help_command
69:         'step'
70:       end

Public Instance methods

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 60
60:     def execute
61:       steps, force = parse_stepping_args("Step", @match)
62:       return unless steps
63:       @state.context.step(steps, force)
64:       @state.proceed
65:     end

[Source]

    # File cli/ruby-debug/commands/stepping.rb, line 54
54:     def regexp
55:       /^\s* s(?:tep)?
56:         ([+-])?(?:\s+(\S+))?
57:         \s*$/x
58:     end

[Validate]