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
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
125
126
127
128
129
|
# File 'lib/byebug/commands/threads.rb', line 125
def help(cmd)
%{
th[read] resume <nnn>\t\tresume thread nnn
}
end
|
.help_command ⇒ Object
121
122
123
|
# File 'lib/byebug/commands/threads.rb', line 121
def help_command
'thread'
end
|
Instance Method Details
#execute ⇒ Object
109
110
111
112
113
114
115
116
117
118
|
# File 'lib/byebug/commands/threads.rb', line 109
def execute
c = parse_thread_num_for_cmd("thread resume", @match[1])
return unless c
if !c.thread.stop?
print "Already running."
return
end
c.resume
display_context(c)
end
|
#regexp ⇒ Object
105
106
107
|
# File 'lib/byebug/commands/threads.rb', line 105
def regexp
/^\s*th(?:read)?\s+resume\s*(\S*)\s*$/
end
|