Class: Debugger::ContinueCommand
- Defined in:
- lib/ruby-debug/commands/continue.rb
Overview
Implements debugger “continue” command.
Constant Summary
Constants inherited from Command
Debugger::Command::DEF_OPTIONS
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Command
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Constructor Details
This class inherits a constructor from Debugger::Command
Class Method Details
.help(cmd) ⇒ Object
31 32 33 34 35 |
# File 'lib/ruby-debug/commands/continue.rb', line 31 def help(cmd) %{ c[ont[inue]][ nnn]\trun until program ends, hits a breakpoint or reaches line nnn } end |
.help_command ⇒ Object
27 28 29 |
# File 'lib/ruby-debug/commands/continue.rb', line 27 def help_command 'continue' end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ruby-debug/commands/continue.rb', line 11 def execute if @match[1] && !@state.context.dead? filename = File.(@state.file) line_number = get_int(@match[1], "Continue", 0, nil, 0) return unless line_number unless LineCache.trace_line_numbers(filename).member?(line_number) errmsg("Line %d is not a stopping point in file \"%s\".\n", line_number, filename) return end @state.context.set_breakpoint(filename, line_number) end @state.proceed end |
#regexp ⇒ Object
7 8 9 |
# File 'lib/ruby-debug/commands/continue.rb', line 7 def regexp /^\s* c(?:ont(?:inue)?)? (?:\s+(.*))? $/x end |