Go——Goland Debug报错Version of Delve is too old for this version of Go

Goland Debug报错
Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with --check-go-version=false)

1. 更新dlv
因为本地已经存在,所以,需要用到-u参数,强制更新包以及依赖

go get -u github.com/go-delve/delve/cmd/dlv@v1.8.0
注:如果get失败,可以直接去github用git下载github.com/go-delve/delve/cmd/dlv。
然后命令行进入到下载好的目录,直接go build编译dlv,将编译好的dlv.exe复制到../bin/目录下 或者 gopath 目录下

2. 设置Goland
打开 Hele->Edit Customer Properties,若提示文件不存在,点击创建。然后在新加一行 dlv.path=E:\\code\\go\\bin\\dlv.exe 重启就可以了

# custom GoLand properties
dlv.path=$GOPATH/bin/dlv
原文地址:https://www.cnblogs.com/xingchong/p/15792243.html