Sha256: a8b0bcbe22aaa032e114c957db99491991c63b95ef2e712b658ed4902c7dfcde
Contents?: true
Size: 486 Bytes
Versions: 26
Compression:
Stored size: 486 Bytes
Contents
require 'byebug/command' module Byebug # # Interrupting execution of current thread. # class InterruptCommand < Command self.allow_in_control = true def self.regexp /^\s*int(?:errupt)?\s*$/ end def self.description <<-EOD int[errupt] #{short_description} EOD end def self.short_description 'Interrupts the program' end def execute Byebug.thread_context(Thread.main).interrupt end end end
Version data entries
26 entries across 25 versions & 3 rubygems