The Python extension is broken - just seems to have updated at the same time as VS Code.

Go back to extension version v2021.12.1559732655 by clicking on the extensions control and selecting "Install another version...". Note that you will have to disable "Extensions: Auto Update", which might be a good thing. I also set "Update: Mode" to "none" for good measure.

Answer from NickS on learn.microsoft.com
🌐
Visual Studio Code
code.visualstudio.com › docs › python › debugging
Python debugging in VS Code
November 3, 2021 - On this toolbar, the disconnect button (⇧F5 (Windows, Linux Shift+F5)) stops the debugger and allows the remote program to run to completion. The restart button (⇧⌘F5 (Windows, Linux Ctrl+Shift+F5)) restarts the debugger on the local computer but does not restart the remote program. Use the restart button only when you've already restarted the remote program and need to reattach the debugger. When you first create launch.json, there are two standard configurations that run the active file in the editor in either the integrated terminal (inside VS Code) or the external terminal (outside of VS Code):
🌐
Reddit
reddit.com › r/learnpython › issues with running python on vs code
r/learnpython on Reddit: Issues with running Python on VS Code
January 7, 2025 -

So I have a data analysis script rn, no errors, and I ran it a month ago on the same pc with no errors and I can run it on google colab.
I had this issue on my laptop recently but I assumed it was only for my laptop. That wasn't the case. Essentially it asks nonstop, "Select a python interpreter" with 2 options that just go to the same file path, just one has a gear icon and the whole file path listed whereas the 2nd has only the end hal.f of the file path. Neither option changes anything, they both then bring up "Debug stopped, open 'launch.json' ".

After that it asks me for a directory, and it never works. I just try anyway I can to get to the Desktop (where my file is stored) and nothing pops up or even goes through.

Does anyone have a solution for this? Or any experience?
It just sucks how this happens out of the blue

Discussions

Visual Studio Code Debugger not launching - Stack Overflow
OS and Version: Windows 10 Build 19042.985 VS Code Version: 1.56.2 C/C++ Extension Version: v1.4.0-insiders other extensions: remote-ssh I've been working with remote-ssh on a raspberry and c/c++ More on stackoverflow.com
🌐 stackoverflow.com
VS Code does not use launch.json arguments when I press Debug Python File
Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.63.1 OS Version: macOS Monterey 12.0.1 Steps to Reproduce: Open VS Code for Mac Open a folder containing a python fil... More on github.com
🌐 github.com
4
December 16, 2021
How to fix VS code debug failure for python
This is what my VS code is displaying even when i try to debug a simple python file of print("Hello World"). I have used Vs code for about a year now and it has never happened. I even re-installed it but it still displays the same. I have even… More on learn.microsoft.com
🌐 learn.microsoft.com
4
0
October 9, 2025
Run pytest in debug mode 'Debug Stopped' error message, check launch.json
Type: Bug Behaviour When I run a test via pytest at the cursor in debug mode, the test run starts, and VSCode gives a popup with the title 'Debug Stopped' and opens the launch.json file. Th... More on github.com
🌐 github.com
5
March 12, 2024
Top answer
1 of 7
6

I was in similar situation and couldn't find relevant resolutions:

Quick Answer: After upgrade to VS Code 1.56.2, make sure to remove old breakpoints and create new breakpoint and at-least have 1 breakpoint and launch.json available.

Lengthy details:

I have similar issue for python scripts when I start the "debugger bar" I see it for a couple of seconds the top debugging bar and then it disappears. Bu then no message on the console, nothing. I tried reinstalling VS Code, enabling/disabling extension, various restart.

  • OS and Version: Mac OSX Version 11.4 (20F71)
  • VS Code Version: 1.56.2
  • Extension: Python v2021.5.842923320 by Microsoft

RootCause:

What I did know for sure that I updated my VS Code, and after that this mysterious issue start happening, so when to release log of VS Code 1.56.2. I found below release log

Debug view displayed on break#

The default value of the debug.openDebug setting is now openOnDebugBreak so that on every breakpoint hit, VS Code will open the Debug view. The Debug view is also displayed on first session start.

So VS code Version 1.56 release, debugger will only show when at-least 1 breakpoint is found. However, looks like there is issue with their internal code checking for historical breakpoint data after VS Code upgrade..

https://code.visualstudio.com/updates/v1_56#_debug-view-displayed-on-break

2 of 7
4

Sometimes you should just clear the Cache and reload the window:

  1. Open the Command Palette in Visual Studio Code by pressing Ctrl+Shift+P.

  2. Type "Python Debugger"

  3. Choose "Clear Cache and Reload Window"

🌐
GitHub
github.com › microsoft › vscode › issues › 139251
VS Code does not use launch.json arguments when I press Debug Python File · Issue #139251 · microsoft/vscode
December 16, 2021 - If I open the Run&Debug pane and then press on the button circled in green with the right profile, it works · What is really baffling to me is nowhere in the documentation does it state the Debug Python file button does not pass arguments. Is there a way to force that button to use my launch.json?
Author   ejkitchen
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 5580830 › how-to-fix-vs-code-debug-failure-for-python
How to fix VS code debug failure for python - Microsoft Q&A
October 9, 2025 - Conclusion=the problem is almost certainly due to missing command line arguments in the debugger's configuration, not a bug in the vs code debugger or a Python version issue. Modifying the “args” add it in your launch.json will resolve the ...
🌐
GitHub
github.com › microsoft › vscode-python › issues › 23053
Run pytest in debug mode 'Debug Stopped' error message, check launch.json · Issue #23053 · microsoft/vscode-python
March 12, 2024 - When I run a test via pytest at the cursor in debug mode, the test run starts, and VSCode gives a popup with the title 'Debug Stopped' and opens the launch.json file. The test continues running according to VSCode but never terminates. I expect the test to run and attach a debugger. Actual behaviour, the window is opened, no debugger is attached and the test runs forever. ... Python version (& distribution if applicable, e.g.
Author   bverhoeve
Find elsewhere
🌐
Reddit
reddit.com › r/vscode › vs code python syntax error in launch.json
r/vscode on Reddit: VS code python syntax error in launch.json
October 10, 2023 -

I'm trying to debug Python in VS Code. I click "create a launch.json file", select Python as the debugger, and then Python File.

When I click "run and debug", I get a syntax error in the monitor on the first (commented) line in the launch.json file that VS Code just created. I haven't edited the file. Why does the default file not work?

Edit: if I delete the comments, I get a different error name 'true' is not defined.

🌐
GitHub
github.com › microsoft › vscode-python-debugger › issues › 826
"Debug Stopped" no matter "Start Debugging" or "Run Without Debugging" · Issue #826 · microsoft/vscode-python-debugger
October 10, 2025 - 2025-10-10 11:55:58.227 [warning] Failed to check if .\"c:\Program Files\Python314\python.exe" is an executable [Error: ENOENT: no such file or directory, lstat 'C:\Users\User\AppData\Local\Programs\Microsoft VS Code\"c:\Program Files\Python314\python.exe"'] { errno: -4058, code: 'ENOENT', syscall: 'lstat', path: 'C:\\Users\\User\\AppData\\Local\\Programs\\Microsoft VS Code\\"c:\\Program Files\\Python314\\python.exe"' } 2025-10-10 11:55:58.229 [warning] Identifier for virt-virtualenv failed to identify .\"c:\Program Files\Python314\python.exe" [Error: ENOENT: no such file or directory, scandir
Author   NewUserHa
🌐
Visual Studio Code
code.visualstudio.com › docs › debugtest › debugging-configuration
Visual Studio Code debug configuration
March 25, 2026 - You can debug a simple application even if you don't have a folder open in VS Code, but it is not possible to manage launch configurations and set up advanced debugging. ... Select create a launch.json file in the Run and Debug view.
🌐
Python Forum
python-forum.io › thread-2438.html
Launch.json isn't working
Hey guys, I am pretty new to coding and am using a MacBook Pro and have downloaded Visual Studio Code. The problem is when I go to debug what I have written the launch.json file was throwing alot of bugs. So I tried editing the file and could not ...
🌐
GitHub
github.com › microsoft › vscode-python-debugger › issues › 198
Debugging not starting with F5 key following 1.86 update - Error while resolving configuration file · Issue #198 · microsoft/vscode-python-debugger
February 6, 2024 - Using ctrl+shift+p and typing python debugger: to select "Python Debugger: Python Debugger: Debug Python File" will work. To get F5 working, I needed to create a launch.json file for my project manually in the debug tab.
Author   DanSleeman
🌐
Donjayamanne
donjayamanne.github.io › pythonVSCodeDocs › docs › troubleshooting_debugger
Debugger | Python in Visual Studio Code
Look at the Debugger Tools console output for any errors. Cause: The path to the python executable is incorrect Solution: Configure the path to the python executable in the launch.json Remember to re-start VS Code once done (this won’t be necessary in a future release).
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 15562
Jupyter notebook debugger stuck and prompt "open 'launch.json' " window · Issue #15562 · microsoft/vscode-jupyter
April 17, 2024 - Applies To Notebooks (.ipynb files) Interactive Window and/or Cell Scripts (.py files with #%% markers) What happened? I tried to use the Jupyter Notebook within VSCode. However, when I click on debug bottom, the debugger just got stuck ...
Author   flyforwardFast
🌐
Reddit
reddit.com › r/vscode › can't use python debugger because it changes cwd
r/vscode on Reddit: Can't use python debugger because it changes cwd
November 4, 2024 -

I'm trying to debug a program with the python debugger. When I run the debugger, it changes my cwd to a different folder, and I get an error because of missing files. I change the cwd again, but I get the same problem

Essentially, every time I run the debugger, it changes my cwd do a different directory and gives me an error. How do I get around this?

🌐
Visual Studio Code
code.visualstudio.com › docs › debugtest › debugging
Debug code with Visual Studio Code
November 3, 2021 - Open the file that contains the code you want to debug. Start a debugging session with the F5 key or select Run and Debug in the Run and Debug view (workbench.view.debug). For more complex debugging scenarios like attaching to a running process, you need to create a launch.json file to specify the debugger configuration.
🌐
Donjayamanne
donjayamanne.github.io › pythonVSCodeDocs › docs › debugging
Debugging | Python in Visual Studio Code
Debugging a standard python application is possible by adding the standard configuration settings in the launch.json file as follows: { "name": "Python", "type": "python", "pythonPath":"${config.python.pythonPath}", "request": "launch", "stopOnEntry": true, "console": "none", "program": "${file}", ...