Skip to content

can't debug anything #828

Closed as duplicate
Closed as duplicate

Description

@Ariggel

As soon as I start the debugger vs code shuts it down. Reinstalled the python extensions, reinstalled vscode 3 times, restarted computer, reinstalled python 3.13, 3.14 and 3.9, tried different launch.json files - Nothing works. I can't debug anything with vscode, but I can with cmd.

Activity

  1. Ariggel commented on Oct 10, 2025

    @Ariggel
    Author

    Something is absolutely off. launch.json was:

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Python-Debugger: Aktuelle Datei",
                "type": "debugpy",
                "request": "launch",
                "program": "${file}",
                "console": "integratedTerminal"
            }
        ]
    }
    

    And it only works now as:

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Python-Debugger: Aktuelle Datei",
                "type": "python",
                "request": "launch",
                "program": "${file}",
                "console": "integratedTerminal"
            }
        ]
    }
    
  2. blongbs commented on Oct 10, 2025

    @blongbs

    I would like to upvote this issue... I down graded the python debugger extension to 2025.10.0 from 2025.14.0. With the revert to the older extension all debugging worked again.

  3. dcleland commented on Oct 10, 2025

    @dcleland

    I just hit this issue as well. Downgrading the python debugger extension to 2025.10.0 fixed this for me as weill.

  4. Ariggel commented on Oct 10, 2025

    @Ariggel
    Author

    Oh well, yes - Extension downgraded to 2025.10.0 fixes this. No need to work with the old python debug type in the launch.json. The most recent update (today) from the debugger extension is broken.

  5. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Member

    Hello everyone! Sorry you are facing this problem and I am looking into right now. I was unable to reproduce the issue you are seeing myself so wanted to ask some follow up questions:

    1. To confirm, the behavior everyone is seeing is that once they start debugging VS Code crashes? And debugging through a launch.json config?
    2. Does it crash if you try and "run and debug file" the button in the top right when you open a python file?
    3. What are the versions of your VS Code, python extension, and python environments extension?
    4. What type of machine are you on?
  6. dcleland commented on Oct 10, 2025

    @dcleland

    When it fails I was getting an Error dialog saying 'Debug Stopped' when I pressed F5 to debug.

    Image

    I switched from my desktop where it was failing to my laptop and it ran Ok there. The only obvious differences was the Python version, as listed below.

    Desktop

    1.105.0 2025.10.0 C:\Program Files\Python311\python.EXE Works
    1.105.0 2025.14.0 C:\Program Files\Python311\python.EXE Fails

    Laptop

    1.105.0 2025.14.0 C:\Program Files\Python313\python.EXE Works

  7. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Member

    closing in favor of #826 as they seem to be the same. Putting out a fix right now and will let you know when it is out so you can confirm your flow works again. Thanks

  8. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Member

    meant to close as duplicate of #826, sorry

  9. Ariggel commented on Oct 10, 2025

    @Ariggel
    Author

    I'll reproduce in estimated 2 to 3 hours. Just tell us when you deployed sth or if u need some more answers :)

  10. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Member

    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!

  11. dcleland commented on Oct 10, 2025

    @dcleland

    I just got that new version and it fixes the problem I had. I can now debug again. Thanks.

  12. dcleland commented on Oct 10, 2025

    @dcleland

    I maybe jumped the gun a little on that. I can now debug my Python script but now errors get thrown on exit, as shown below

    `PS E:\work\python\scripts\renamer> e:; cd 'e:\work\python\scripts\renamer'; & 'c:\Program Files\Python311\python.exe' 'c:\Users\dcleland.vscode\extensions\ms-python.debugpy-2025.15.2025101002-win32-x64\bundled\libs\debugpy\launcher' '12192' '--' 'E:\work\python\scripts\renamer\renamer.py'

    Traceback (most recent call last):
    File "c:\Program Files\Python311\Lib\runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "c:\Program Files\Python311\Lib\runpy.py", line 88, in run_code
    exec(code, run_globals)
    File "c:\Users\dcleland.vscode\extensions\ms-python.debugpy-2025.15.2025101002-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy_main
    .py", line 71, in
    cli.main()
    File "c:\Users\dcleland.vscode\extensions\ms-python.debugpy-2025.15.2025101002-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 508, in main
    run()
    File "c:\Users\dcleland.vscode\extensions\ms-python.debugpy-2025.15.2025101002-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 358, in run_file
    runpy.run_path(target, run_name="main")
    File "c:\Users\dcleland.vscode\extensions\ms-python.debugpy-2025.15.2025101002-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 310, in run_path
    return _run_module_code(code, init_globals, run_name, pkg_name=pkg_name, script_name=fname)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "c:\Users\dcleland.vscode\extensions\ms-python.debugpy-2025.15.2025101002-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 125, in _run_module_code
    with _TempModule(mod_name) as temp_module, _ModifiedArgv0(fname):
    File "c:\Users\dcleland.vscode\extensions\ms-python.debugpy-2025.15.2025101002-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 97, in exit
    sys.argv[0] = self._saved_value
    ~~~~~~~~^^^
    IndexError: list assignment index out of range
    PS E:\work\python\scripts\renamer> `

  13. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Member

    Can you confirm it works correctly through the terminal (not with vscode)? Seems like sys.argv is getting mutated but I am not sure how that would connect to the path issue. You could also try running "clear cache and reload" as this may help reset your environment after the previous bug

  14. Ariggel commented on Oct 10, 2025

    @Ariggel
    Author

    Eleanor Boyd (@eleanorjboyd) Did you revoke the .15 version or am I blind? ^^;

  15. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Member

    I still see 2025.15.2025101002 listed- is it showing any version released within the past 3 hours? I also see it listed on the marketplace site online: https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy&ssr=false#version-history

  16. Ariggel commented on Oct 10, 2025

    @Ariggel
    Author

    VSCode didn't want to install it - But I was convincing. Got the version 2025.15.2025101002 running and kept my launch.json with debugpy -> Works like a charm.

  17. eleanorjboyd commented on Oct 10, 2025

    @eleanorjboyd
    Member

    Great! I will release fix as 2025.14.1 shortly which should help as well

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

Metadata

Metadata

Labels

triage-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