美文网首页
golang不能使用debug

golang不能使用debug

作者: Selv | 来源:发表于2019-03-02 22:18 被阅读0次

golang更新到1.11后debug功能使用报错

问题
Goland和Idea使用debug报错,如下:could not launch process: decoding dwarf section info at offset 0x0: too short。

解决方法
1,更新dlv

go get -u github.com/derekparker/delve/cmd/dlv

2.修改goland或idea配置
更新后的div在$gopath路径下的bin文件夹下。

替换到idea或goland的这个目录下


image.png

重启ide,问题解决

相关文章

网友评论

      本文标题:golang不能使用debug

      本文链接:https://www.haomeiwen.com/subject/gqfuuqtx.html