最近升级了 Go 到 1.14,发现使用 Goland debug 程序的时候报错了。完整的报错信息如下。
API server listening at: 127.0.0.1:53951
Version of Delve is too old for this version of Go (maximum supported version 1.13, suppress this error with --check-go-version=false)
Debugger finished with exit code 1
错误信息提示的很明显,也就是现在 Goland 使用的 dlv,不支持 Go > 1.13 的版本,所以实际上,升级一下 dlv,然后将 Goland 使用的 dlv 路径重新指定一下就好了。
重新指定。