Class: Debugger::ThreadListCommand
- Inherits:
-
Command
- Object
- SimpleDelegator
- Command
- Debugger::ThreadListCommand
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
18
19
20
21
22
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 18
def help(cmd)
%{
th[read] l[ist]\t\t\tlist all threads
}
end
|
.help_command ⇒ Object
14
15
16
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 14
def help_command
'thread'
end
|
Instance Method Details
#execute ⇒ Object
8
9
10
11
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 8
def execute
contexts = Debugger.contexts.sort_by{|c| c.thnum}
print_contexts(contexts)
end
|
#regexp ⇒ Object
4
5
6
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 4
def regexp
/^\s*th(?:read)?\s+l(?:ist)?\s*$/
end
|