VSCode Python Debugger stops suddenly

Question:

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
Asked By: FXG

||

Answers:

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 By: FXG

2022.20.1 also has this issue. Went back to 2022.8.1 and it works just fine.

Answered By: Jerrin Joseph

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 By: Maarten
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.