Sha256: a7e78136787ff624c4d92d96a1dd3d0bbbf248aa9eae07f7aa2fdb06ecce8e71

Contents?: true

Size: 999 Bytes

Versions: 49

Compression:

Stored size: 999 Bytes

Contents

module Debugger

  # Implements debugger "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
        @state.context.set_breakpoint(filename, line_number)
      end
      @state.proceed
    end

    class << self
      def help_command
        'continue'
      end

      def help(cmd)
        %{
          c[ont[inue]][ nnn]\trun until program ends, hits a breakpoint or reaches line nnn 
        }
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 11 rubygems

Version Path
ruby-debug-0.11.0 cli/ruby-debug/commands/continue.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/ruby-debug-0.10.6/cli/ruby-debug/commands/continue.rb
ruby-debug-0.10.6 cli/ruby-debug/commands/continue.rb
ruby-debug-0.10.5.rc9 cli/ruby-debug/commands/continue.rb
ruby-debug-0.10.5.rc8 cli/ruby-debug/commands/continue.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/continue.rb
ruby-debug-0.10.5.rc7 cli/ruby-debug/commands/continue.rb
ruby-debug-0.10.5.rc5 cli/ruby-debug/commands/continue.rb
ruby-debug-0.10.5.rc4 cli/ruby-debug/commands/continue.rb
debugger2-1.0.0.beta2 lib/ruby-debug/commands/continue.rb
debugger2-1.0.0.beta1 lib/ruby-debug/commands/continue.rb
needy_debugger-1.4.0 lib/ruby-debug/commands/continue.rb
debugger-1.4.0 lib/ruby-debug/commands/continue.rb
debugger-1.3.3 lib/ruby-debug/commands/continue.rb
debugger-1.3.2 lib/ruby-debug/commands/continue.rb
debugger-1.3.1 lib/ruby-debug/commands/continue.rb
debugger-1.3.0 lib/ruby-debug/commands/continue.rb
debugger-1.2.4 lib/ruby-debug/commands/continue.rb
debugger-1.2.3 lib/ruby-debug/commands/continue.rb
ruby-debug-0.10.5.rc3 cli/ruby-debug/commands/continue.rb