这个问题在小虎登录vscode同步了设置后出现,原因是launch文件被修改或删除。解决方法是重新添加launch。
win11 + vscode
Ctrl + shift + P,搜索debug添加配置: 选择python debugger。 结果生成了一个文件在当前路径: launch内容:
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes.