| Class | Debugger::ContinueCommand |
| In: |
cli/ruby-debug/commands/continue.rb
|
| Parent: | Command |
Implements debugger "continue" command.
# 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
# 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