昨天,我所有的代码在我的 Visual Studio 代码中都运行良好。今天,在 Windows 更新后,每次尝试调试时都会收到以下消息:Property localRoot is not allowed. (17, 13)Property remoteRoot is not allowed. (18, 13)Property secret is not allowed. (20, 13)Property debugOptions is not allowed. (47, 13)Property debugOptions is not allowed. (79, 13)Property debugOptions is not allowed. (111, 13)我使用 python 3.6.6,我的 launch.json 如下:{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [ { "name": "Python: Current File", "type": "python", "request": "launch", "program": "${file}" }, { "name": "Python: Attach", "type": "python", "request": "attach", "localRoot": "${workspaceFolder}", "remoteRoot": "${workspaceFolder}", "port": 3000, "secret": "my_secret", "host": "localhost" }, { "name": "Python: Terminal (integrated)", "type": "python", "request": "launch", "program": "${file}", "console": "integratedTerminal" }, { "name": "Python: Terminal (external)", "type": "python", "request": "launch", "program": "${file}", "console": "externalTerminal" }, { "name": "Python: Django", "type": "python", "request": "launch", "program": "${workspaceFolder}/manage.py", "args": [ "runserver", "--noreload", "--nothreading" ], "debugOptions": [ "RedirectOutput", "Django" ] },请帮我。我尝试删除这些属性,但没有用,并且一直在研究,但没有找到任何有用的东西:/编辑:好的,现在我删除了旧的 launch.json 并创建了一个新的。它仍然失败并给我一条“等待调试器连接超时”消息,但它没有说明问题可能是什么:\
1 回答
萧十郎
TA贡献1815条经验 获得超13个赞
我不知道为什么,但现在我没有收到错误消息,一切正常。无论如何,感谢您的关注,祝您有美好的一天
编辑:好的,它又发生了,但现在我知道我通过添加一个来修复它:
"python.terminal.activateEnvironment": false
到settings.json,但我上次删除了它,因为我低估了它:P
添加回答
举报
0/150
提交
取消