From dec7b1a9c7ffb8ba937c68d19c51e24fccdeb4a7 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 5 Aug 2025 19:03:23 +0200 Subject: [PATCH] pydevd: Fix up prefix of attach shared library for Windows Follow-up to #1917, which changed the prefix for Windows. The crux of that contribution was about enabling attaching on Sillicon Mac (in fact, it came from my colleagues at Zed Industries). This however broke .dll lookup per https://github.com/zed-industries/zed/pull/35640#issuecomment-3155624377 --- src/debugpy/_vendored/pydevd/pydevd_tracing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/debugpy/_vendored/pydevd/pydevd_tracing.py b/src/debugpy/_vendored/pydevd/pydevd_tracing.py index 41135d7d..09b3dc44 100644 --- a/src/debugpy/_vendored/pydevd/pydevd_tracing.py +++ b/src/debugpy/_vendored/pydevd/pydevd_tracing.py @@ -250,7 +250,9 @@ def get_python_helper_lib_filename(): else: suffix = suffix_32 - if IS_WINDOWS or IS_MAC: # just the extension changes + if IS_WINDOWS: # just the extension changes + prefix = "attach_" + elif IS_MAC: prefix = "attach" suffix = "" elif IS_LINUX: #