Home >Backend Development >Golang >Why Am I Seeing the 'Decoding Dwarf Section Info at Offset 0x0: Too Short' Error When Debugging Go in GoLand?
Debugging Go with GoLand: "Decoding Dwarf Section Info at Offset 0x0: Too Short" Error
When attempting to debug a Go program in JetBrains GoLand, you may encounter the error: "decoding dwarf section info at offset 0x0: too short." This error indicates that the debugger is unable to decode the debug information in the compiled executable.
Solution:
The root cause of this issue lies in the bundled version of Delve that ships with GoLand. To resolve the error, update GoLand to version 2018.2.2 or later. Additionally, if remote debugging is required, ensure that Delve is updated on the target machine and compiled with Go 1.11.
Other Potential Causes:
In some cases, this error can also arise due to:
The above is the detailed content of Why Am I Seeing the 'Decoding Dwarf Section Info at Offset 0x0: Too Short' Error When Debugging Go in GoLand?. For more information, please follow other related articles on the PHP Chinese website!