Sha256: 90e578b84a50f30620a042e7b05fff372be8ce87375ef358835a7b7b1fdf11d0

Contents?: true

Size: 504 Bytes

Versions: 6

Compression:

Stored size: 504 Bytes

Contents

module Byebug
  #
  # Interrupting execution of current thread.
  #
  class InterruptCommand < Command
    self.allow_in_control     = true
    self.allow_in_post_mortem = false

    def regexp
      /^\s*i(?:nterrupt)?\s*$/
    end

    def execute
      context = Byebug.thread_context(Thread.main)
      context.interrupt
    end

    class << self
      def names
        %w(interrupt)
      end

      def description
        %(i|nterrupt        Interrupts the program.)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
byebug-3.5.1 lib/byebug/commands/interrupt.rb
byebug-3.5.0 lib/byebug/commands/interrupt.rb
byebug-3.4.2 lib/byebug/commands/interrupt.rb
byebug-3.4.1 lib/byebug/commands/interrupt.rb
byebug-3.4.0 lib/byebug/commands/interrupt.rb
byebug-3.3.0 lib/byebug/commands/interrupt.rb