class Byebug::ContinueCommand
Implements the continue command.
Allows the user to continue execution until the next stopping point, a specific line number or until program termination.
Public Class Methods
description()
click to toggle source
# File lib/byebug/commands/continue.rb, line 20 def self.description <<-DESCRIPTION c[ont[inue]][ <line_number>] #{short_description} DESCRIPTION end
regexp()
click to toggle source
# File lib/byebug/commands/continue.rb, line 16 def self.regexp /^\s* c(?:ont(?:inue)?)? (?:\s+(\S+))? \s*$/x end
short_description()
click to toggle source
# File lib/byebug/commands/continue.rb, line 28 def self.short_description "Runs until program ends, hits a breakpoint or reaches a line" end
Public Instance Methods
execute()
click to toggle source
# File lib/byebug/commands/continue.rb, line 32 def execute if @match[1] num, err = get_int(@match[1], "Continue", 0, nil) return errmsg(err) unless num filename = File.expand_path(frame.file) unless Breakpoint.potential_line?(filename, num) return errmsg(pr("continue.errors.unstopped_line", line: num)) end Breakpoint.add(filename, num) end processor.proceed! Byebug.stop if Byebug.stoppable? end