总体解决思路
获取到最新dlv.exe替换掉goland安装目录下默认的dlv.exe
获取最新div.exe
https://github.com/go-delve/delve
1.下载zip
进入到解压的zip包目录delve-master\cmd\dlv,看见main.go 文件
2.编译成exe
# 执行编译命令,获取到dlv.exe
go build
替换goland安装目录下的dlv.exe
比如我的在安装目录:D:\MyHome\JetBrains\GoLand 2021.2.5\plugins\go\lib\dlv\windows