vscode配置debug的环境

配置好python解释器,
ctrl + shift + P 就可以指定python了。

  1. 当前环境下建立 .vscode 文件夹
  2. 新建 .vscode/launch.json 文件
  3. 文件的配置如下
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: 当前文件",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "justMyCode": false,
            "console": "integratedTerminal",
            "args": ["--config", "exp/ds_tcn/config.yaml"]
        }
    ]
}

设置好断点,即可以 F5 运行,debug了。
参考网页
python vscode debug网页
https://www.cnblogs.com/wutou/p/17019701.html

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐