昨天,我所有的代码在我的 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 并创建了一个新的。它仍然失败并给我一条“等待调试器连接超时”消息,但它没有说明问题可能是什么:\
萧十郎
相关分类