内容简介:问题Goland和Idea使用debug报错,如下:could not launch process: decoding dwarf section info at offset 0x0: too short。解决方法
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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。