-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrade to 2025.0.0 : "Server[pid=x] is already being debugged" error #592
Comments
@SherekhanFR I downgraded the version of the extension "Python Debugger" to v2024.14.0, now debugging of azure functions is working again |
thank you for downgrading the version of the extension "Python Debugger" to v2024.14.0. It solved my issue too. |
This happens when I have multiple VS Code windows open with Python projects:
These are standard python projects, not Azure functions. |
This is particular annoying - is there a way to disable the new No‐Config Debugging and only opt-into that feature? |
Same issue here. An opt out would be highly appreciated. I suspect it has to do when multiple windows are open, causing multiple windows to try to connect and oftentimes the wrong window ending up connecting.... |
Yep indeed - my current workaround is to close all other windows except the one for the repo I'm trying to debug, but this is kind of a time-sync [I'd rather prefer having the option to / being able to attach to a remote debug server "manually" as before]. I also tried to remove all debug configurations that reference the respective port that debugpy is listening on hoping that then that particular window won't try to connect, but seems like the debug configs aren't even respected by the no-config debugging [as the name suggests 😄] |
Hi! Sorry about this. Can people describe how exactly they are debugging and the expected vs actual behavior. Are people trying to debug through the terminal without using no-config debug? By multiple windows can you describe those more, are they windows in the same workspace? |
I want to add that I receive this error with only one VS Code instance open, but then again I'm using the "Blender Development" extension which attaches the Python debugger to Blender behind the scenes, showing said message box. (I also returned to the last 2024 version to get around this issue.) The first pre-release version where this issue appears is 2024.15.2025011702 |
My environment
Expected vs actual
More details on my setup Programatic debugger setup: os.environ["PYDEVD_RESOLVE_SYMLINKS"] = "1"
debugpy.listen(("localhost", 5678))
debugpy.wait_for_client()
Explaining my folder setup:
|
Hello,
since I upgraded to version 2025.0.0, I get error "Server[pid=x] is already being debugged" while debugging Python Azure Function.
if I downgrade to version 2024.14.0 it is working fine.
VSCode on Mac :
Version: 1.97.0
Commit: 33fc5a94a3f99ebe7087e8fe79fbe1d37a251016
Date: 2025-02-04T22:41:26.688Z (2 days ago)
Electron: 32.2.7
ElectronBuildId: 10660205
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin x64 20.6.0
launch.json
ms-python.debugpy log file
The text was updated successfully, but these errors were encountered: