Class: Debugger::ThreadCurrentCommand
- Inherits:
-
Command
- Object
- Command
- Debugger::ThreadCurrentCommand
show all
- Defined in:
- lib/ruby-debug/commands/threads.rb
Overview
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, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
182
183
184
185
186
|
# File 'lib/ruby-debug/commands/threads.rb', line 182
def help(cmd)
%{
th[read] [cur[rent]]\t\tshow current thread
}
end
|
.help_command ⇒ Object
178
179
180
|
# File 'lib/ruby-debug/commands/threads.rb', line 178
def help_command
'thread'
end
|
Instance Method Details
#execute ⇒ Object
173
174
175
|
# File 'lib/ruby-debug/commands/threads.rb', line 173
def execute
display_context(@state.context)
end
|
#regexp ⇒ Object
169
170
171
|
# File 'lib/ruby-debug/commands/threads.rb', line 169
def regexp
/^\s*th(?:read)?\s*(?:cur(?:rent)?)?\s*$/
end
|