class Debugger::ContinueCommand

Implements debugger “continue” command.

Public Class Methods

help(cmd) click to toggle source
# File cli/ruby-debug/commands/continue.rb, line 31
def help(cmd)
  %Q{
    c[ont[inue]][ nnn]\trun until program ends, hits a breakpoint or reaches line nnn 
  }
end
help_command() click to toggle source
# File cli/ruby-debug/commands/continue.rb, line 27
def help_command
  'continue'
end

Public Instance Methods

execute() click to toggle source
# File cli/ruby-debug/commands/continue.rb, line 11
def execute
  if @match[1] && !@state.context.dead?
    filename = File.expand_path(@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() click to toggle source
# File cli/ruby-debug/commands/continue.rb, line 7
def regexp
  /^\s* c(?:ont(?:inue)?)? (?:\s+(.*))? $/
end