Class: Debugger::ThreadCurrentCommand
- Inherits:
-
Command
- Object
- SimpleDelegator
- Command
- Debugger::ThreadCurrentCommand
show all
- Defined in:
- lib/ruby-debug-ide/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, file_filter_supported?, #find, inherited, #initialize, load_commands, #match, method_missing, options, unescape_incoming
Class Method Details
.help(cmd) ⇒ Object
137
138
139
140
141
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 137
def help(cmd)
%{
th[read] c[ur[rent]]\t\tshow current thread
}
end
|
.help_command ⇒ Object
133
134
135
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 133
def help_command
'thread'
end
|
Instance Method Details
#execute ⇒ Object
128
129
130
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 128
def execute
print_context(@state.context)
end
|
#regexp ⇒ Object
124
125
126
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 124
def regexp
/^\s*th(?:read)?\s+c(?:ur(?:rent)?)?\s*$/
end
|