Class: Byebug::ThreadResumeCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::ThreadResumeCommand
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
165
166
167
|
# File 'lib/byebug/commands/threads.rb', line 165
def description
%{th[read] resume <nnn>\t\tresume thread nnn}
end
|
.names ⇒ Object
161
162
163
|
# File 'lib/byebug/commands/threads.rb', line 161
def names
%w(thread)
end
|
Instance Method Details
#execute ⇒ Object
149
150
151
152
153
154
155
156
157
158
|
# File 'lib/byebug/commands/threads.rb', line 149
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
145
146
147
|
# File 'lib/byebug/commands/threads.rb', line 145
def regexp
/^\s* th(?:read)? \s+ resume \s* (\S*) \s*$/x
end
|