diff --git a/src/debugpy/server/tracing/__init__.py b/src/debugpy/server/tracing/__init__.py index 4114a67d..94c18197 100644 --- a/src/debugpy/server/tracing/__init__.py +++ b/src/debugpy/server/tracing/__init__.py @@ -379,7 +379,8 @@ class Step: break return is_complete elif self.step == "out": - while python_frame is not None: + is_complete = True + for python_frame, _ in traceback.walk_stack(python_frame): if python_frame is self.origin: is_complete = False break