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