Why Am I Getting 'decoding dwarf section info at offset 0x0: too short' Error When Debugging in GoLand?

Mary-Kate Olsen
Release: 2024-11-05 03:47:02
Original
813 people have browsed it

Why Am I Getting

Debugging Error: "decoding dwarf section info at offset 0x0: too short"

This error occurs when using JetBrains GoLand to debug a Go program, indicating that the debugging information in the executable is insufficient.

Solution

The primary solution to this error is to update GoLand to version 2018.2.2. This version ships with an updated version of Delve, the debugging tool used by GoLand.

For remote debugging, updating Delve is necessary on both the local and target machines. Ensure that Delve is built using Go version 1.11 to prevent compatibility issues.

Additional Considerations

  • Disabled Debug Flags: If the executable was compiled without debugging flags, it may not contain the required debugging information. Enable debugging flags to resolve this.
  • Plugin Package: Using the standard library "plugin" package can trigger this error. This issue is expected to be fixed in Go 1.12.

The above is the detailed content of Why Am I Getting 'decoding dwarf section info at offset 0x0: too short' Error When Debugging in GoLand?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!