【问题标题】:How can I fix the Python Debugger error(crash) on Visual Studio Code?如何修复 Visual Studio Code 上的 Python 调试器错误(崩溃)?
【发布时间】:2018-04-02 14:03:26
【问题描述】:

每当我尝试开始调试 Python 时,图片上的这个栏都不会出现,我只得到我的代码的输出。我该如何解决?This happens when I start debuggingThis Bar is missing

【问题讨论】:

    标签: python-3.x debugging visual-studio-code vscode-settings vscode-debugger


    【解决方案1】:

    我遇到了同样的问题。它突然开始发生。

    我可以复制粘贴我在另一台计算机上的配置来解决它。
    尝试将此配置添加到 vs 代码中的“launch.json”文件并用于调试:

        {
            "name": "Python",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${file}",
            "cwd": "${workspaceFolder}",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        }
    

    【讨论】:

    • 谢谢。但是我应该在哪里添加呢?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多