我得到 6 次: 属性 _______ 是不允许的(并且不知道该怎么做)

I am getting 6 times: Property _______ is not allowed (and don't know what to do)

昨天,我的所有代码在 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"
        ]
    },
    {
        "name": "Python: Flask (0.11.x or later)",
        "type": "python",
        "request": "launch",
        "module": "flask",
        "env": {
            "FLASK_APP": "app.py"
        },
        "args": [
            "run",
            "--no-debugger",
            "--no-reload"
        ]
    },
    {
        "name": "Python: Module",
        "type": "python",
        "request": "launch",
        "module": "module.name"
    },
    {
        "name": "Python: Pyramid",
        "type": "python",
        "request": "launch",
        "args": [
            "${workspaceFolder}/development.ini"
        ],
        "debugOptions": [
            "RedirectOutput",
            "Pyramid"
        ]
    },
    {
        "name": "Python: Watson",
        "type": "python",
        "request": "launch",
        "program": "${workspaceFolder}/console.py",
        "args": [
            "dev",
            "runserver",
            "--noreload=True"
        ]
    },
    {
        "name": "Python: All debug Options",
        "type": "python",
        "request": "launch",
        "pythonPath": "${config:python.pythonPath}",
        "program": "${file}",
        "module": "module.name",
        "env": {
            "VAR1": "1",
            "VAR2": "2"
        },
        "envFile": "${workspaceFolder}/.env",
        "args": [
            "arg1",
            "arg2"
        ],
        "debugOptions": [
            "RedirectOutput"
        ]
    }
]
}

请帮帮我。我尝试删除属性,但没有用,我一直在研究但没有找到任何有用的东西:/

编辑:好的,现在我删除了旧的 launch.json 并创建了一个新的。它仍然失败并给我一条 "Timeout waiting for debugger connection" 消息,但它没有说明问题可能是什么:\

我不知道为什么,但现在我没有收到错误并且一切正常。无论如何,感谢您的关注,祝您有愉快的一天

编辑:好的,它又发生了,但现在我知道我通过添加一个修复了它:

"python.terminal.activateEnvironment": false

到settings.json,不过我上次删了因为嫌弃:P