Skip to content

Commit 1e0f45c

Browse files
committed
Avoid locking all threads on debugger suspension
Details in Shopify/team-ruby-dx#724 This commit simply doesn't lock any threads during suspension, which is what byebug does. It may prevent users from investigating threading problem, but it's still better than freezing the process just by running a ActiveRecord query.
1 parent 4313d91 commit 1e0f45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debug/session.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ def get_thread_client th = Thread.current
16861686
DEBUGGER__.debug{ "Enter subsession (nested #{@subsession_stack.size})" }
16871687
else
16881688
DEBUGGER__.debug{ "Enter subsession" }
1689-
stop_all_threads
1689+
# stop_all_threads
16901690
@process_group.lock
16911691
end
16921692

0 commit comments

Comments
 (0)