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