Class: Byebug::InterruptCommand
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
84
85
86
|
# File 'lib/byebug/commands/control.rb', line 84
def description
%{i|nterrupt\t interrupt the program}
end
|
.names ⇒ Object
80
81
82
|
# File 'lib/byebug/commands/control.rb', line 80
def names
%w(interrupt)
end
|
Instance Method Details
#execute ⇒ Object
74
75
76
77
|
# File 'lib/byebug/commands/control.rb', line 74
def execute
context = Byebug.thread_context(Thread.main)
context.interrupt
end
|
#regexp ⇒ Object
70
71
72
|
# File 'lib/byebug/commands/control.rb', line 70
def regexp
/^\s*i(?:nterrupt)?\s*$/
end
|