16

after installing Windows updates today, debugging is not working anymore.

This is my active debug configuration:

"launch": {
 "version": "0.2.0",
 "configurations": [
 {
 "name": "DEBUG CURR",
 "type": "python",
 "request": "launch",
 "program": "${file}",
 "console": "internalConsole",
 "justMyCode": false,
 "stopOnEntry": false,
 }...

When I start the debugger, the menu pops up briefly for 1-2 seconds. But then it closes. There is no output in the console.

It does not stop at set breakpoints.

Does anybody have the same problem? Is there a solution?

System settings

  • OS: Microsoft Windows 10 Enterprise (10.0.17763 Build 17763)
  • VSCode version 1.64.0
  • Python version: 3.8.11 (in the active Anaconda Environment)

Installed VSCode extensions:

  • Python (Microsoft) version: v2022.0.1786462952
  • Pylance (Microsoft) version: v2022.2.0
wjandrea
34.1k10 gold badges69 silver badges107 bronze badges
asked Feb 7, 2022 at 13:49
3

3 Answers 3

22

It's an issue with the latest Python Extension for VSCode.

Downgrading the python extension to v2021.12.1559732655 fixes the problem.

enter image description here

answered Feb 7, 2022 at 14:43
Sign up to request clarification or add additional context in comments.

5 Comments

The newer version 2022年8月1日 also works for me. The breaking version seems to be 2022100.
2022140 has this bug. Downgrading to 2022年8月1日 works.
I had the same problem today with Python Extension v2022.16.1 using Python 3.6 (I'm still on Ubuntu 18.04). It seems that the VS Code debugger doesn't play nicely with older versions of Python, so I installed Python 3.8 using deadsnakes PPA. VS Code debugger now works like a charm.
unfortunately going to 2022年8月1日 did not solve the issue for me
this seems to be happening again in 2024
2

I've had the same issue with the python plugin v2022.20.2

Going back to 2022年8月1日 resolved it for me as well.

answered Jan 26, 2023 at 9:52

Comments

0

2022201 also has this issue. Went back to 2022年8月1日 and it works just fine.

answered Dec 19, 2022 at 0:39

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.