Vscode突然没办法调试
python2.7
, 且报错...........import _thread as thread; verify_shadowed.check(thread, ['start_new_thread', 'start_new', 'allocate_lock']) ImportError: No module named _thread
, 下面是解决方案
出现原因
Vscode最新版本的Python
扩展插件只支持python>3.7的版本。
解决方案
将Vscode扩展插件Python
回滚到2022年以前的版本即可。