Sha256: 9504de37cdb8e5d69880a2c2e4c3edfdbf4d9cd2d1f02e85e53c5192d12cfdc4
Contents?: true
Size: 553 Bytes
Versions: 18
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true 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 <<-DESCRIPTION int[errupt] #{short_description} DESCRIPTION end def self.short_description "Interrupts the program" end def execute Byebug.start Byebug.thread_context(Thread.main).interrupt end end end
Version data entries
18 entries across 18 versions & 8 rubygems