Sha256: fea942e58b523cc7ea144c9d4ddbde5449020bff6603328e5543bf30289e6561

Contents?: true

Size: 619 Bytes

Versions: 26

Compression:

Stored size: 619 Bytes

Contents

require 'byebug/subcommands'

require 'byebug/commands/thread/current'
require 'byebug/commands/thread/list'
require 'byebug/commands/thread/resume'
require 'byebug/commands/thread/stop'
require 'byebug/commands/thread/switch'

module Byebug
  #
  # Manipulation of Ruby threads
  #
  class ThreadCommand < Command
    include Subcommands

    def self.regexp
      /^\s* th(?:read)? (?:\s+ (.+))? \s*$/x
    end

    def self.description
      <<-EOD
        th[read] <subcommand>

        #{short_description}
      EOD
    end

    def self.short_description
      'Commands to manipulate threads'
    end
  end
end

Version data entries

26 entries across 25 versions & 3 rubygems

Version Path
byebug-8.0.1 lib/byebug/commands/thread.rb
byebug-8.0.0 lib/byebug/commands/thread.rb
byebug-7.0.0 lib/byebug/commands/thread.rb
byebug-6.0.2 lib/byebug/commands/thread.rb
byebug-6.0.1 lib/byebug/commands/thread.rb
byebug-6.0.0 lib/byebug/commands/thread.rb