Sha256: f4e65303043d53d9446c6a375528b41939721b2b598f5ede60a0119fa9a7d999
Contents?: true
Size: 991 Bytes
Versions: 3
Compression:
Stored size: 991 Bytes
Contents
module Byebug # Implements byebug "continue" command. class ContinueCommand < Command self.allow_in_post_mortem = true self.need_context = false def regexp /^\s* c(?:ont(?:inue)?)? (?:\s+(.*))? $/x end 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 Byebug.add_breakpoint filename, line_number end @state.proceed end class << self def names %w(continue) end def description %{ c[ont[inue]][ nnn] Run until program ends, hits a breakpoint or reaches line nnn } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
byebug-1.3.0 | lib/byebug/commands/continue.rb |
byebug-1.2.0 | lib/byebug/commands/continue.rb |
byebug-1.1.1 | lib/byebug/commands/continue.rb |