我在 mac(mojave 操作系统)中将 golang 从 v1.11 升级到 v1.13。调试器开始抛出错误 测试框架意外退出
。控制台输出是
API server listening at: 127.0.0.1:xxxxx
Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with --check-go-version=false)
Debugger finished with exit code 1
从那时起我就无法在 goland 上使用调试器,但是 delve as cli 命令正在运行。不知道如何进行?另外,我在 goland 中找不到任何禁用 --check-go-version 的选项?
最佳答案
将您的 IDE 更新到 GoLand 2019.2.2 或更新版本,问题将得到解决。
关于Goland 调试器无法在 Mac 上使用 go 版本升级(v1.11 -> v1.13),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58068489/