Sha256: 7bcd71d184f26cc8d84685571d06a20978639ac9f5cbd4b202649915caf3b800

Contents?: true

Size: 585 Bytes

Versions: 64

Compression:

Stored size: 585 Bytes

Contents

module Debugger

  # Implements debugger "pause" command
  class PauseCommand < Command
    self.control = true

    def regexp
      /^\s*pause\s*(?:\s+(\S+))?\s*$/
    end

    def execute
      Debugger.contexts.each do |c|
        unless c.respond_to?(:pause)
          print_msg "Not implemented"
          return
        end
        c.pause
      end
    end

    class << self
      def help_command
        %w[pause]
      end

      def help(cmd)
        %{
          pause <nnn>\tpause a running thread
         }
      end
    end
  end
end

Version data entries

64 entries across 56 versions & 5 rubygems

Version Path
ruby-debug-ide-0.6.1.beta4 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.6.1.beta3 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.6.1.beta2 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.6.0 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.6.0.beta1 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.5.0 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.33 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.32 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.31 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.30 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.29 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.28 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.27 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.26 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.25 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.24 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.24.beta5 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.24.beta4 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.23 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.23.beta11 lib/ruby-debug-ide/commands/pause.rb