Class: Byebug::ThreadCurrentCommand
- Includes:
- ThreadFunctions
- Defined in:
- lib/byebug/commands/threads.rb
Overview
Show current thread.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ThreadFunctions
#display_context, #parse_thread_num, #parse_thread_num_for_cmd, #thread_arguments
Methods inherited from Command
commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, #match
Methods included from StringFunctions
Methods included from FileFunctions
#get_line, #get_lines, #n_lines, #normalize
Methods included from ParseFunctions
#get_int, #parse_steps, #syntax_valid?
Constructor Details
This class inherits a constructor from Byebug::Command
Class Method Details
.description ⇒ Object
125 126 127 128 129 |
# File 'lib/byebug/commands/threads.rb', line 125 def description prettify <<-EOD th[read] cur[rent] Shows current thread. EOD end |
.names ⇒ Object
121 122 123 |
# File 'lib/byebug/commands/threads.rb', line 121 def names %w(thread) end |
Instance Method Details
#execute ⇒ Object
116 117 118 |
# File 'lib/byebug/commands/threads.rb', line 116 def execute display_context(@state.context) end |
#regexp ⇒ Object
112 113 114 |
# File 'lib/byebug/commands/threads.rb', line 112 def regexp /^\s* th(?:read)? \s+ (?:cur(?:rent)?)? \s*$/x end |