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

时间:2022-07-22
本文章向大家介绍Version of Delve is too old for this version of Go【Goland Debug】报错,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

最近升级了 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 路径重新指定一下就好了。

重新指定。