Skip to content

"Debug Stopped" no matter "Start Debugging" or "Run Without Debugging" #826

Closed

Description

@NewUserHa

version:
vscode: 1.104.3
python: 2025.16.0
python debugger: 2025.14.0
python environments: 1.8.0

Image

after investigating, found output from python extension:

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 'C:\Users\User\AppData\Local\Programs\Microsoft VS Code\"c:\Program Files\Python314'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'C:\\Users\\User\\AppData\\Local\\Programs\\Microsoft VS Code\\"c:\\Program Files\\Python314'
}

the language server works normal, having no issue.
disabling python environments doesn't help.
sometimes it will prompt missing launch.json, but in previous version of python debugger, it can work without launch.json and should work without that, it's a feature.

Activity

  1. NewUserHa commented on Oct 10, 2025

    @NewUserHa
    Author

    when setting "python.useEnvironmentsExtension": true, the error become:
    the output of python extension stopped output that previous error, but no matter "Start Debugging" or "Run Without Debugging", it popup
    Image

  2. NewUserHa commented on Oct 10, 2025

    @NewUserHa
    Author

    version 2025.6.0 version 2025.10.0 has no this issue, but to work on python3.14 needs debugpy>=v1.8.15, however, only version>=
    2025.14.0 bundled debugpy>=v1.8.15.

    so, python3.14 unable to use debug until this issue fixed.

    info: https://www.github.com/microsoft/debugpy/issues/1893

  3. kcerniauskas3 commented on Oct 10, 2025

    @kcerniauskas3

    python3.13 is affected too

  4. martinowitsch commented on Oct 10, 2025

    @martinowitsch

    Same issue after updating vscode

    Image

    python 3.10

  5. kcerniauskas3 commented on Oct 10, 2025

    @kcerniauskas3

    I think it just co-coincided with VS Code update, as debugger extension got updated too.

  6. martinowitsch commented on Oct 10, 2025

    @martinowitsch

    True!
    Setting Python Debugger extension to version 2025.10.0 resolved this issue for me

  7. radu-ion commented on Oct 10, 2025

    @radu-ion

    Same here! The only thing that worked for me, with all latest versions of VS Code and all Python extensions, was to set the "type" from "debugpy" to "python" in the launch.json file.

  8. RamkiAllada commented on Oct 10, 2025

    @RamkiAllada

    Same here! The only thing that worked for me, with all latest versions of VS Code and all Python extensions, was to set the "type" from "debugpy" to "python" in the launch.json file.

    This solution is an instant fix.

  9. irenedecesare commented on Oct 10, 2025

    @irenedecesare

    Man, you just saved me with this comment. You were more helpful than GPT. Thanks!

    Same here! The only thing that worked for me, with all latest versions of VS Code and all Python extensions, was to set the "type" from "debugpy" to "python" in the launch.json file.

  10. a-kachurin commented on Oct 10, 2025

    @a-kachurin

    The same

  11. drkpierson commented on Oct 10, 2025

    @drkpierson

    Same here! The only thing that worked for me, with all latest versions of VS Code and all Python extensions, was to set the "type" from "debugpy" to "python" in the launch.json file.

    Any ideas how to do something similar for jupyter notebooks? When I run my notebook it hangs with "Connecting to kernel: Python 3.13.7..."

  12. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Contributor

    Hi everyone- so sorry for this issue arising and thank you for all the details on what is happening. It seems like downgrading to 2025.10.0 or switching the "type" are fixes people are seeing. Are others also seeing an error message along the lines of "Failed to check if ."c:\Program Files\Python314\python.exe" is an executable"? Investigating the issue now- thanks

  13. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Contributor

    My best guess for the regression is this PR: 408601a#diff-393c6b35367e2a8adc44dc3c3a41fc893d752e37dae2d0f6ed5bbe29da485648. Curious what people's interpreter paths are which are failing (ie do they have spaces in them)

  14. 2 remaining items

  15. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Contributor

    Hello! I have put out a release with the fix. It was release 5 minutes ago (so 11:39 PDT) and has the version 2025.15.2025101002 but this specific version number may different across machine types. Please give this a try and let me know if it works. Thanks!

  16. blongbs commented on Oct 10, 2025

    @blongbs

    Eleanor Boyd (@eleanorjboyd)

    My best guess for the regression is this PR: 408601a#diff-393c6b35367e2a8adc44dc3c3a41fc893d752e37dae2d0f6ed5bbe29da485648. Curious what people's interpreter paths are which are failing (ie do they have spaces in them)

    My path has spaces further up in the directory and I have had the problem.

  17. blongbs commented on Oct 10, 2025

    @blongbs

    Hello! I have put out a release with the fix. It was release 5 minutes ago (so 11:39 PDT) and has the version 2025.15.2025101002 but this specific version number may different across machine types. Please give this a try and let me know if it works. Thanks!

    Eleanor Boyd (@eleanorjboyd) installed the update from the prerelease. The change allowed my system to run the debug as the older version 2025.10.0

  18. dmail00 commented on Oct 11, 2025

    @dmail00

    Eleanor Boyd (@eleanorjboyd) This version broke my install, reporting "Debug Stopped", reverted to previous version.

  19. radu-ion commented on Oct 11, 2025

    @radu-ion

    Hello! I have put out a release with the fix. It was release 5 minutes ago (so 11:39 PDT) and has the version 2025.15.2025101002 but this specific version number may different across machine types. Please give this a try and let me know if it works. Thanks!

    Yes, that fixes it for me. I've also updated the Python Environments extension, so everything Python is up to date on my machine, as is the VS Code. Thanks!
    P.S. I have switched back the type from "python" to "debugpy" in launch.json, as it used to be.
    P.P.S. My Python interpreter is in "Program Files", so yes, it has a space in it. I was suspecting that this could be the problem, so I will install it in a folder with no spaces from now on.

  20. samdockrill commented on Oct 11, 2025

    @samdockrill

    Yep, my path had spaces and I had this issue too. Will try the update. Was very confusing considering I am still learning Python, glad it is a known and seemingly solved issue and not some mysterious misconfiguration on my end.

  21. torolego commented on Oct 12, 2025

    @torolego

    Hello! I have put out a release with the fix. It was release 5 minutes ago (so 11:39 PDT) and has the version 2025.15.2025101002 but this specific version number may different across machine types. Please give this a try and let me know if it works. Thanks!

    well done Eleanor :) ! it's work also for me, thank you very much 💯

  22. eleanorjboyd commented on Oct 13, 2025

    @eleanorjboyd
    Contributor

    Glad it worked for everyone! I am putting out a new stable release with the fix (2025.14.1) right now that should be out soon. Thanks

  23. minhbuibhm commented on Nov 14, 2025

    @minhbuibhm

    The new Debugger extension (version 2025.16), released yesterday, November 13th, has the same error "Debug Stopped". I've switched back to version 2025.15, and it's working fine now

  24. ziadwagdy commented on Nov 16, 2025

    @ziadwagdy

    Encountering the same issue "Debug Stopped" after upgrading vscode to the latest version on macOS Silicon,
    When having the following configuration to debug a python program:

            "type": "debugpy",
            "request": "launch",
    

    it fails, but when attaching the debugger to a process it works fine.

                "type": "debugpy",
                "request": "attach",
    
  25. eleanorjboyd commented on Nov 18, 2025

    @eleanorjboyd
    Contributor

    may be related to #849. Can you try changing the setting python.useEnvironmentsExtension: false and let me know if that makes it work again?

  26. ziadwagdy commented on Dec 1, 2025

    @ziadwagdy

    It is set to false by default, yet it didn't make it work.
    Having a default python environment set makes debugging works fine. with "request" : "launch", added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

importantIssue identified as high-prioritytriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions