diff --git a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py index a73b189d3..222f0817f 100644 --- a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py +++ b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py @@ -280,7 +280,7 @@ def make_get_thread_stack_message(self, py_db, seq, thread_id, topmost_frame, fm total_frames = len(frames) stack_frames = frames if bool(levels): - start = start_frame + start = start_frame if bool(start_frame) else 0 end = min(start + levels, total_frames) stack_frames = frames[start:end]