解码偏移量为0x0的矮节信息:太短 [英] decoding dwarf section info at offset 0x0: too short
问题描述
我正在使用JetBrains GoLand,并且尝试调试go文件,但出现以下错误:
I am using JetBrains GoLand and I am trying to debug my go file and I am getting the following error:
在偏移量0x0处解码矮节信息:太短
decoding dwarf section info at offset 0x0: too short
我试图在StackOverflow上找到答案,但是不幸的是,我没有任何解决方法.
I tried to find an answer here at StackOverflow but unfortunately, I didn't get any solution.
推荐答案
GoLand随附了捆绑版本的Delve.更新到2018.2.2,它应该可以工作.如果需要进行远程调试,则还需要在目标计算机上/为目标计算机更新Delve安装(确保使用Go 1.11进行编译).
GoLand ships with a bundled version of Delve. Update to 2018.2.2 and it should work. If you need to do remote debugging, then you need to update your Delve installation on/for the target machine as well (make sure you compile it with Go 1.11).
还有两种可能出现此问题的情况:
There are two more possible cases where this issue can appear:
- 在关闭所有调试标志并删除其他调试信息的情况下编译应用程序
- 该应用程序使用标准库插件"程序包,已知该程序包会在Go编译器中引起问题.这将在Go 1.12中修复.
这篇关于解码偏移量为0x0的矮节信息:太短的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!