Class: Byebug::ThreadListCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::ThreadListCommand
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
command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
83
84
85
86
87
|
# File 'lib/byebug/commands/threads.rb', line 83
def description
%{
th[read] l[ist]\t\t\tlist all threads
}
end
|
.names ⇒ Object
79
80
81
|
# File 'lib/byebug/commands/threads.rb', line 79
def names
%w(thread)
end
|
Instance Method Details
#execute ⇒ Object
74
75
76
|
# File 'lib/byebug/commands/threads.rb', line 74
def execute
Byebug.contexts.sort_by(&:thnum).each { |c| display_context(c) }
end
|
#regexp ⇒ Object
70
71
72
|
# File 'lib/byebug/commands/threads.rb', line 70
def regexp
/^\s* th(?:read)? \s+ l(?:ist)? \s*$/x
end
|