class Byebug::InterruptCommand


Interrupting execution of current thread.

def self.description

def self.description
  <<-DESCRIPTION
    int[errupt]
    #{short_description}
  DESCRIPTION
end

def self.regexp

def self.regexp
  /^\s*int(?:errupt)?\s*$/
end

def self.short_description

def self.short_description
  "Interrupts the program"
end

def execute

def execute
  Byebug.start
  Byebug.thread_context(Thread.main).interrupt
end