class Byebug::InterruptCommand

Interrupting execution of current thread.

Public Class Methods

description() click to toggle source
# File lib/byebug/commands/interrupt.rb, line 14
def self.description
  <<-EOD
    int[errupt]

    #{short_description}
  EOD
end
regexp() click to toggle source
# File lib/byebug/commands/interrupt.rb, line 10
def self.regexp
  /^\s*int(?:errupt)?\s*$/
end
short_description() click to toggle source
# File lib/byebug/commands/interrupt.rb, line 22
def self.short_description
  'Interrupts the program'
end

Public Instance Methods

execute() click to toggle source
# File lib/byebug/commands/interrupt.rb, line 26
def execute
  Byebug.thread_context(Thread.main).interrupt
end