返回

修改launch.json以添加console参数

2022-02-04
IDE

修改项目的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