Class: Byebug::ThreadStopCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::ThreadStopCommand
show all
- Defined in:
- lib/byebug/commands/threads.rb
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
92
93
94
95
96
|
# File 'lib/byebug/commands/threads.rb', line 92
def help(cmd)
%{
th[read] stop <nnn>\t\tstop thread nnn
}
end
|
.help_command ⇒ Object
88
89
90
|
# File 'lib/byebug/commands/threads.rb', line 88
def help_command
'thread'
end
|
Instance Method Details
#execute ⇒ Object
80
81
82
83
84
85
|
# File 'lib/byebug/commands/threads.rb', line 80
def execute
c = parse_thread_num_for_cmd("thread stop", @match[1])
return unless c
c.suspend
display_context(c)
end
|
#regexp ⇒ Object
76
77
78
|
# File 'lib/byebug/commands/threads.rb', line 76
def regexp
/^\s*th(?:read)?\s+stop\s*(\S*)\s*$/
end
|