返回

修改launch.json以添加console参数

本文介绍如何在launch.json文件中添加console参数以优化Python调试配置。
2022-02-04
321 字 · 约 1 分钟阅读

修改项目的launch.json文件,添加console参数

{   "version": "0.2.0",
    "configurations": [
        {   "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "internalConsole"
        }
    ]
}

资料来源

  • https://stackoverflow.com/questions/58194880/in-vscode-python-debugger-launches-a-new-terminal-every-time-i-debug

留言

发表留言