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
command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
134
135
136
|
# File 'lib/byebug/commands/threads.rb', line 134
def description
%{th[read] stop <nnn>\t\tstop thread nnn}
end
|
.names ⇒ Object
130
131
132
|
# File 'lib/byebug/commands/threads.rb', line 130
def names
%w(thread)
end
|
Instance Method Details
#execute ⇒ Object
122
123
124
125
126
127
|
# File 'lib/byebug/commands/threads.rb', line 122
def execute
c = parse_thread_num_for_cmd('thread stop', @match[1])
return unless c
c.suspend
display_context(c)
end
|
#regexp ⇒ Object
118
119
120
|
# File 'lib/byebug/commands/threads.rb', line 118
def regexp
/^\s* th(?:read)? \s+ stop \s* (\S*) \s*$/x
end
|