VS Code Debugger Immediately Exits

Question:

I use VS Code for a python project but recently whenever I launch the debugger it immediately exits. The debug UI will pop up for half a second then disappear. I can’t hit a breakpoint no matter where it’s placed in the current file. The project has the expected normal behavior when run in non-debug mode. I vaguely remember a command being inserted into the terminal window when I used to click debug but now I see nothing. I opened a totally different project but debugger still exits immediately.

Any advice? Anywhere I can find logs for the debugger run?

My launch.json file:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": true
        }
    ]
}

I have tried: running app as admin, reinstalling vs code, reinstalling python extension, restarting app, restarting computer, disabling all non-essential extensions, deleting launch.json, launching a file with only print statement.

Asked By: Cameron Blumenthal

||

Answers:

Please install a version later than python3.6 ( excluding 3.6 ).

If you must use python3.6 or earlier. Please rollback the python extension to version 2022.08.0.

enter image description here

enter image description here

Answered By: JialeDu