End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
DEBUGGER__.thread_list_all
thread_list_all
lib/debug.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/debug.rb, line 1042
def thread_list_all
for th in @thread_list.values.sort
thread_list(th)
end
end
Prints all threads in @thread_list to @stdout. Returns a sorted array of values from the @thread_list hash.
While in the debugger you can list all of the threads with: DEBUGGER__.thread_list_all
(rdb:1) DEBUGGER__.thread_list_all +1 #<Thread:0x007fb2320c03f0 run> debug_me.rb.rb:3 2 #<Thread:0x007fb23218a538 debug_me.rb.rb:3 sleep> 3 #<Thread:0x007fb23218b0f0 debug_me.rb.rb:3 sleep> [1, 2, 3]
Your current thread is indicated by a +
Additionally you can list all threads with th l
(rdb:1) th l +1 #<Thread:0x007f99328c0410 run> debug_me.rb:3 2 #<Thread:0x007f9932938230 debug_me.rb:3 sleep> debug_me.rb:3 3 #<Thread:0x007f9932938e10 debug_me.rb:3 sleep> debug_me.rb:3
See DEBUGGER__ for more usage.