Goland could not launch process: decoding dwarf section info at offset 0x0: too short 解决方案


1 前言

Goland版本:2018.1.5

Go:1.11.2

此版本调试不了bug,而且有时会显示could not launch process: decoding dwarf section info at offset 0x0: too short。第二个bug是会去解析字符串中大括号,例如(Get single todo: curl -g 'http://localhost:8080/graphql?query={todo(id:"b"){id,text,done}}'),导致编译不通过。

2 解决方案

升级到Goland 2及以上版本即可。

下载地址:https://www.jetbrains.com/go/download/#section=windows

3 旧方案

link:https://blog.csdn.net/woodcutter_man/article/details/83154788 

应该是Goland的dlv不是新版本导致不能debug。

解决:

1、更新dlv,go get -u github.com/derekparker/delve/cmd/dlv

2、修改Goland的配置,Help->Edit Custom Properties中增加新版dlv的路径配置:dlv.path=/path/go/bin/dlv

本人测试无效。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM