Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Python Debugger stops suddenly

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
like image 612
FXG Avatar asked Dec 31 '25 10:12

FXG


2 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

like image 118
FXG Avatar answered Jan 02 '26 01:01

FXG


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.

like image 29
Maarten Avatar answered Jan 02 '26 03:01

Maarten