Class: Byebug::StepCommand
Overview
Implements byebug “step” command.
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
69
70
71
72
73
74
75
|
# File 'lib/byebug/commands/stepping.rb', line 69
def description
%{
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 :forcestep setting.
}
end
|
.names ⇒ Object
65
66
67
|
# File 'lib/byebug/commands/stepping.rb', line 65
def names
%w(step)
end
|
Instance Method Details
#execute ⇒ Object
57
58
59
60
61
62
|
# File 'lib/byebug/commands/stepping.rb', line 57
def execute
steps, force = parse_stepping_args("Step", @match)
return unless steps
@state.context.step_into steps, force
@state.proceed
end
|
#regexp ⇒ Object
53
54
55
|
# File 'lib/byebug/commands/stepping.rb', line 53
def regexp
/^\s* s(?:tep)?([+-]) ?(?:\s+(\S+))? \s*$/x
end
|