-
Notifications
You must be signed in to change notification settings - Fork 145
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
Cannot launch debug session, error in vscode pythonFiles #1010
Comments
Sounds like a dupe of #987. We'll ship a new debugpy version with this fix soon, but until then, you can follow the steps in the linked issue to patch your local copy. |
Thanks! Didn't even realise this debugpy was a separate repo. I'll continue using 2022.8.1 until the fix is released, as this version is working fine for me. |
Is there an estimate of when this fix may get released? |
debugpy 1.6.3 has the fix. @karthiknadig, what's the plan for shipping that in vscode-python? |
Should go out in a bug fix release either today or tomorrow. |
This is now in release 2022.12.1 |
Type: Bug
Behaviour
Expected vs. Actual
Expected behavior: starting a debug session (e.g. with F5) runs my Python module and allows me to set breakpoints, etc.
Actual behavior: starting a debug session shows a Python traceback from the VS Code Python extension (i.e. not from my code) and does not run my Python module.
The displayed traceback:
I have tried a few different situations:
"console": "externalTerminal"
, but the issue still occurs, now appearing in a Command Prompt window titled VS Code Console so it would not appear to be related to using MINGW64.My launch.json (it's as simple as can be)
Inside the root folder of the workspace is a folder called
launchbug
containing a__main__.py
containing my code.Steps to reproduce:
launchbug
and open the folder in VS Code.vscode/launch.json
as abovelaunchbug/__main__.py
with the contentsprint('Hello, world!')
Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2022.12.0
VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:16.462Z)
OS version: Windows_NT x64 10.0.19043
Modes:
The text was updated successfully, but these errors were encountered: