From 5b5d91e180785063b078d21df755273feed907f6 Mon Sep 17 00:00:00 2001 From: Dylan Pulliam Date: Fri, 9 Oct 2015 22:57:59 +0900 Subject: [PATCH] Add documentation for DEBUGGER__ --- lib/debug.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lib/debug.rb b/lib/debug.rb index fcbf849..05614e3 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -1008,6 +1008,29 @@ EOHELP @stdout.print "\n" 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 # debug_me.rb.rb:3 + # 2 # + # 3 # + # [1, 2, 3] + # + # Your current thread is indicated by a + + # + # Additionally you can list all threads with th l + # + # (rdb:1) th l + # +1 # debug_me.rb:3 + # 2 # debug_me.rb:3 + # 3 # debug_me.rb:3 + # + # See DEBUGGER__ for more usage. + def thread_list_all for th in @thread_list.values.sort thread_list(th) -- 2.3.4