golang2019 开启debug报错
API server listening at: 127.0.0.1:65404
Version of Delve is too old for this version of Go (maximum supported version 1.13, suppress this error with –check-go-version=false)
1. 升级 delve
在项目的控制台输入:go get -u github.com/go-delve/delve/cmd/dlv
2. 配置
步骤1完成之后,在GOPATH\bin目录下会有一个dlv.exe,在goland>help>Edit Custom Properties中增加一行(换成这个新的dlv.exe):
dlv.path=你的gopath路径\\dlv.exe(新的dlv.exe路径)如: dlv.path=C:/Users/go/bin/dlv.exe
3. 发现 第一步走不通
fatal: unable to access ‘github.com/go-delve/delve/': Unknown SSL protocol error in connection to github.com:443
4. 直接下载源代码
在源码执行里面
go install github.com/go-delve/delve/cmd/dlv
5. 搜索 delve.exe 在哪里,放这个路径 走 第二步
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: