Sha256: 0395da63ea8b9f30cc6c6d7baa2360185d1683688075075866a6e05b86b64592
Contents?: true
Size: 987 Bytes
Versions: 8
Compression:
Stored size: 987 Bytes
Contents
require 'byebug/command' module Byebug # # Implements the continue command. # # Allows the user to continue execution until the next stopping point, a # specific line number or until program termination. # class ContinueCommand < Command def regexp /^\s* c(?:ont(?:inue)?)? (?:\s+(\S+))? \s*$/x end def execute if @match[1] num, err = get_int(@match[1], 'Continue', 0, nil) return errmsg(err) unless num filename = File.expand_path(@state.file) unless Breakpoint.potential_line?(filename, num) return errmsg(pr('continue.errors.unstopped_line', line: num)) end Breakpoint.add(filename, num) end @state.proceed end class << self def names %w(continue) end def description prettify <<-EOD c[ont[inue]][ <n>] Run until program ends, hits a breakpoint or reaches line <n>. EOD end end end end
Version data entries
8 entries across 7 versions & 2 rubygems