lib/byebug/commands/interrupt.rb
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
Source Files
- lib/byebug.rb
- lib/byebug/attacher.rb
- lib/byebug/breakpoint.rb
- lib/byebug/command.rb
- lib/byebug/command_list.rb
- lib/byebug/commands.rb
- lib/byebug/commands/break.rb
- lib/byebug/commands/catch.rb
- lib/byebug/commands/condition.rb
- lib/byebug/commands/continue.rb
- lib/byebug/commands/debug.rb
- lib/byebug/commands/delete.rb
- lib/byebug/commands/disable.rb
- lib/byebug/commands/disable/breakpoints.rb
- lib/byebug/commands/disable/display.rb
- lib/byebug/commands/display.rb
- lib/byebug/commands/down.rb
- lib/byebug/commands/edit.rb
- lib/byebug/commands/enable.rb
- lib/byebug/commands/enable/breakpoints.rb
- lib/byebug/commands/enable/display.rb
- lib/byebug/commands/finish.rb
- lib/byebug/commands/frame.rb
- lib/byebug/commands/help.rb
- lib/byebug/commands/history.rb
- lib/byebug/commands/info.rb
- lib/byebug/commands/info/breakpoints.rb
- lib/byebug/commands/info/display.rb
- lib/byebug/commands/info/file.rb
- lib/byebug/commands/info/line.rb
- lib/byebug/commands/info/program.rb
- lib/byebug/commands/interrupt.rb
- lib/byebug/commands/irb.rb
- lib/byebug/commands/kill.rb
- lib/byebug/commands/list.rb
- lib/byebug/commands/method.rb
- lib/byebug/commands/next.rb
- lib/byebug/commands/pry.rb
- lib/byebug/commands/quit.rb
- lib/byebug/commands/restart.rb
- lib/byebug/commands/save.rb
- lib/byebug/commands/set.rb
- lib/byebug/commands/show.rb
- lib/byebug/commands/source.rb
- lib/byebug/commands/step.rb
- lib/byebug/commands/thread.rb
- lib/byebug/commands/thread/current.rb
- lib/byebug/commands/thread/list.rb
- lib/byebug/commands/thread/resume.rb
- lib/byebug/commands/thread/stop.rb
- lib/byebug/commands/thread/switch.rb
- lib/byebug/commands/tracevar.rb
- lib/byebug/commands/undisplay.rb
- lib/byebug/commands/untracevar.rb
- lib/byebug/commands/up.rb
- lib/byebug/commands/var.rb
- lib/byebug/commands/var/all.rb
- lib/byebug/commands/var/args.rb
- lib/byebug/commands/var/const.rb
- lib/byebug/commands/var/global.rb
- lib/byebug/commands/var/instance.rb
- lib/byebug/commands/var/local.rb
- lib/byebug/commands/where.rb
- lib/byebug/context.rb
- lib/byebug/core.rb
- lib/byebug/errors.rb
- lib/byebug/frame.rb
- lib/byebug/helpers/bin.rb
- lib/byebug/helpers/eval.rb
- lib/byebug/helpers/file.rb
- lib/byebug/helpers/frame.rb
- lib/byebug/helpers/parse.rb
- lib/byebug/helpers/path.rb
- lib/byebug/helpers/reflection.rb
- lib/byebug/helpers/string.rb
- lib/byebug/helpers/thread.rb
- lib/byebug/helpers/toggle.rb
- lib/byebug/helpers/var.rb
- lib/byebug/history.rb
- lib/byebug/interface.rb
- lib/byebug/interfaces/local_interface.rb
- lib/byebug/interfaces/remote_interface.rb
- lib/byebug/interfaces/script_interface.rb
- lib/byebug/interfaces/test_interface.rb
- lib/byebug/option_setter.rb
- lib/byebug/printers/base.rb
- lib/byebug/printers/plain.rb
- lib/byebug/processors/command_processor.rb
- lib/byebug/processors/control_processor.rb
- lib/byebug/processors/post_mortem_processor.rb
- lib/byebug/processors/script_processor.rb
- lib/byebug/remote.rb
- lib/byebug/runner.rb
- lib/byebug/setting.rb
- lib/byebug/settings/autoirb.rb
- lib/byebug/settings/autolist.rb
- lib/byebug/settings/autopry.rb
- lib/byebug/settings/autosave.rb
- lib/byebug/settings/basename.rb
- lib/byebug/settings/callstyle.rb
- lib/byebug/settings/fullpath.rb
- lib/byebug/settings/histfile.rb
- lib/byebug/settings/histsize.rb
- lib/byebug/settings/linetrace.rb
- lib/byebug/settings/listsize.rb
- lib/byebug/settings/post_mortem.rb
- lib/byebug/settings/savefile.rb
- lib/byebug/settings/stack_on_error.rb
- lib/byebug/settings/width.rb
- lib/byebug/subcommands.rb
- lib/byebug/version.rb