最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - vscode python debugger hangs for ever - Stack Overflow

programmeradmin8浏览0评论

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.

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.

Share Improve this question asked Mar 21 at 12:48 CuteufoCuteufo 5751 gold badge7 silver badges17 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Since this is quite critical for me and I cannot wait for an answer how to fix it with current settings, I have to completely remove the VSCode and reinstall it, and fortunately, the new installation works fine.

I referred to this thread for complete removal of VSCode on MacOS: How to completely uninstall VS Code on mac?

发布评论

评论列表(0)

  1. 暂无评论