go更新了1.20导致GoLand无法使用Debug

控制台告警:WARNING: undefined behavior - version of Delve is too old for Go
version 1.20.-1 (maximum supported version 1.19)

1.git clone https://github.com/go-delve/delve.git
2.go install github.com/go-delve/delve/cmd/dlv@latest
3.{GOPATH}/bin目录下生成dlv.exe
4.复制div.exe文件替换{GoLand安装目录}\plugins\go\lib\dlv\windows下的div.exe文件,重启项目就好了

不想生成div.exe的,网盘下载链接

你可能感兴趣的:(IDEA,golang,debug)