Class: Byebug::InterruptCommand
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, #print_subcmds, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
94
95
96
97
98
|
# File 'lib/byebug/commands/control.rb', line 94
def help(cmd)
%{
i[nterrupt]\tinterrupt the program
}
end
|
.help_command ⇒ Object
90
91
92
|
# File 'lib/byebug/commands/control.rb', line 90
def help_command
'interrupt'
end
|
Instance Method Details
#execute ⇒ Object
82
83
84
85
86
87
|
# File 'lib/byebug/commands/control.rb', line 82
def execute
unless Byebug.interrupt_last
context = Byebug.thread_context(Thread.main)
context.interrupt
end
end
|
#regexp ⇒ Object
78
79
80
|
# File 'lib/byebug/commands/control.rb', line 78
def regexp
/^\s*i(?:nterrupt)?\s*$/
end
|