vscode调试和设置

1 https://cloud.tencent.com/developer/article/1348486

可以多项目调试,想调试哪个项目添加哪个即可,无需更换program的路径,直接添加即可

配置启动项时如下:

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            // "program": "${fileDirname}",
            // "program": "${workspaceFolder}",
            // "program": "${workspaceRoot}/src"
            "program": "/Users/hanhua/go/src/go_learn/main.go",
            "env": {},
            "args": []
        },
    ]
}

要调试哪个程序就修改programs参数,后面是路径名+要调试的程序,

参考:https://www.cnblogs.com/ljhoracle/p/11047083.html

https://cloud.tencent.com/developer/article/1348486

2 设置

https://www.jianshu.com/p/548023e550bf

posted on 2020-10-14 21:02  吃我一枪  阅读(559)  评论(0编辑  收藏  举报

导航