0
点赞
收藏
分享

微信扫一扫

vscode设置调试路径

天天天蓝loveyou 2022-04-07 阅读 85
vscodepython

将下面内容贴到.vscode/launch.json文件中,没有就自己创建一个。

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: 当前文件launch",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "cwd": "${fileDirname}", // 主要是这个修改为文件所在目录,不写就默认是工作区根目录
        }
    ]
}
举报

相关推荐

0 条评论