Implements debugger “step” command.
# File cli/ruby-debug/commands/stepping.rb, line 72 def help(cmd) %Q{ s[tep][+-]?[ nnn]\tstep (into methods) once or nnn times \t\t'+' forces to move to another line. \t\t'-' is the opposite of '+' and disables the force_stepping setting. } end
# File cli/ruby-debug/commands/stepping.rb, line 68 def help_command 'step' end
# File cli/ruby-debug/commands/stepping.rb, line 60 def execute steps, force = parse_stepping_args("Step", @match) return unless steps @state.context.step(steps, force) @state.proceed end
# File cli/ruby-debug/commands/stepping.rb, line 54 def regexp /^\s* s(?:tep)? ([+-])?(?:\s+(\S+))? \s*$/ end