Class: Byebug::ThreadResumeCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::ThreadResumeCommand
show all
- Defined in:
- lib/byebug/commands/threads.rb
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
166
167
168
|
# File 'lib/byebug/commands/threads.rb', line 166
def description
%{th[read] resume <nnn>\t\tresume thread nnn}
end
|
.names ⇒ Object
162
163
164
|
# File 'lib/byebug/commands/threads.rb', line 162
def names
%w(thread)
end
|
Instance Method Details
#execute ⇒ Object
150
151
152
153
154
155
156
157
158
159
|
# File 'lib/byebug/commands/threads.rb', line 150
def execute
c = parse_thread_num_for_cmd('thread resume', @match[1])
return unless c
if !c.suspended?
errmsg 'Already running'
return
end
c.resume
display_context(c)
end
|
#regexp ⇒ Object
146
147
148
|
# File 'lib/byebug/commands/threads.rb', line 146
def regexp
/^\s* th(?:read)? \s+ resume \s* (\S*) \s*$/x
end
|