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

Starting: D:\gopath\bin\dlv.exe dap --check-go-version=false --listen=127.0.0.1:59561 from
d:\h\work\divego\example_channel
DAP server listening at: 127.0.0.1:59561
WARNING: undefined behavior - Go version 1.15.2 is too old for this version of Delve (minimum supported version 1.16)
Type 'dlv help' for list of commands.

https://www.digitalocean.com/community/tutorials/debugging-go-code-with-visual-studio-code

posted on 2022-10-10 17:44  heidsoft  阅读(564)  评论(0编辑  收藏  举报