From bdc827290e5e85ca283be68d31ba6d124c8e616f Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 31 Dec 2020 09:04:34 -0300 Subject: [PATCH] Revert "Disable tracing at thread shutdown. Fixes #492" This reverts commit 4fe9c151fb4ef9f83505ea9c27671a35e1721e19. --- src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py b/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py index 12b909e12..487c521b6 100644 --- a/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py +++ b/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py @@ -916,11 +916,7 @@ def __call__(self): ret = self.original_func(*self.args, **self.kwargs) finally: if thread_id is not None: - if py_db is not None: - # At thread shutdown we only have pydevd-related code running (which shouldn't - # be tracked). - py_db.disable_tracing() - py_db.notify_thread_not_alive(thread_id) + py_db.notify_thread_not_alive(thread_id) return ret