Class Debugger::ContinueCommand
In: cli/ruby-debug/commands/continue.rb
Parent: Command

Implements debugger "continue" command.

Methods

execute   help   help_command   regexp  

Public Class methods

[Source]

    # File cli/ruby-debug/commands/continue.rb, line 31
31:       def help(cmd)
32:         %{
33:           c[ont[inue]][ nnn]\trun until program ends, hits a breakpoint or reaches line nnn 
34:         }
35:       end

[Source]

    # File cli/ruby-debug/commands/continue.rb, line 27
27:       def help_command
28:         'continue'
29:       end

Public Instance methods

[Source]

    # File cli/ruby-debug/commands/continue.rb, line 11
11:     def execute
12:       if @match[1] && !@state.context.dead?
13:         filename = File.expand_path(@state.file)
14:         line_number = get_int(@match[1], "Continue", 0, nil, 0)
15:         return unless line_number
16:         unless LineCache.trace_line_numbers(filename).member?(line_number)
17:           errmsg("Line %d is not a stopping point in file \"%s\".\n", 
18:                  line_number, filename) 
19:           return
20:         end
21:         @state.context.set_breakpoint(filename, line_number)
22:       end
23:       @state.proceed
24:     end

[Source]

   # File cli/ruby-debug/commands/continue.rb, line 7
7:     def regexp
8:       /^\s* c(?:ont(?:inue)?)? (?:\s+(.*))? $/x
9:     end

[Validate]