Skip to content

Commit

Permalink
Revert "Disable tracing at thread shutdown. Fixes microsoft#492"
Browse files Browse the repository at this point in the history
This reverts commit 4fe9c15.
  • Loading branch information
fabioz committed Dec 31, 2020
1 parent 4fe9c15 commit bdc8272
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bdc8272

Please sign in to comment.