[Python] vscode python debugger hangs for ever

Discussão em 'Python' iniciado por Stack, Março 21, 2025.

  1. Stack

    Stack Membro Participativo

    Recently my VSCode is out of work. When I choose Python Debugger: Debug Python File from the upper-right drop-down menu, the TERMINAL panel will show the command line of starting Python debugger like:

    cd /Users/me/Projects/kiwi ; /usr/bin/env /Users/me/miniconda3/bin/python /Users/me/.vscode/extensions/ms-python.debugpy-2025.4.1-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 49633 -- /Users/me/Projects/kiwi/test.py

    then it hangs there for ever. If I choose 'Run Python File', it works fine.

    The environment:

    MacOS Sequoia 15.3.2
    Python v3.12.9
    VSCode Version: 1.98.2
    VSCode plugins: Pylance 2025.3.2, Python 2025.2.0, Python Debugger 2025.4.1, Vim 1.29.0


    test.py:

    import os

    print(os.getcwd())


    I am not debugging with launch.json, so it is irrelevant. Any advice on how to get VSCode back to normal is very much appreciated.

    Continue reading...

Compartilhe esta Página