Class: Debugger::ThreadInspectCommand
- Inherits:
-
Command
- Object
- SimpleDelegator
- Command
- Debugger::ThreadInspectCommand
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
79
80
81
82
83
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 79
def help(cmd)
%{
th[read] in[spect] <nnn>\tswitch thread context to nnn but don't resume any threads
}
end
|
.help_command ⇒ Object
75
76
77
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 75
def help_command
'thread'
end
|
Instance Method Details
#execute ⇒ Object
70
71
72
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 70
def execute
@state.context = get_context(@match[1].to_i)
end
|
#regexp ⇒ Object
66
67
68
|
# File 'lib/ruby-debug-ide/commands/threads.rb', line 66
def regexp
/^\s*th(?:read)?\s+in(?:spect)?\s+(\d+)\s*$/
end
|