Sha256: 8984612983e75e0757197312bc6dbc339428098e259bd15f0f96228e17cb7375

Contents?: true

Size: 565 Bytes

Versions: 14

Compression:

Stored size: 565 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
      c = get_context(@match[1].to_i)
      unless c.respond_to?(:pause)
        print_msg "Not implemented"
        return
      end
      c.pause
    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

14 entries across 14 versions & 1 rubygems

Version Path
ruby-debug-ide-0.4.18 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17.beta17 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17.beta16 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17.beta14 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17.beta13 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17.beta12 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17.beta9 lib/ruby-debug-ide/commands/pause.rb
ruby-debug-ide-0.4.17.beta8 lib/ruby-debug/commands/pause.rb
ruby-debug-ide-0.4.17.beta6 lib/ruby-debug/commands/pause.rb
ruby-debug-ide-0.4.17.beta5 lib/ruby-debug/commands/pause.rb
ruby-debug-ide-0.4.17.beta4 lib/ruby-debug/commands/pause.rb
ruby-debug-ide-0.4.17.beta3 lib/ruby-debug/commands/pause.rb
ruby-debug-ide-0.4.16 lib/ruby-debug/commands/pause.rb