[Go实战]Goland:could not launch process: decoding dwarf section info at offset 0x0: too short

309 阅读1分钟

第一次用goland,因为之前喜欢JetBrains全家桶

然后我安装的Go版本

goland版本

debug出问题

解决方案

cmd执行以下语句:

go get -u github.com/derekparker/delve/cmd/dlv

然后在本地找到这个文件

‪C:\Users\你的用户名\go\bin\dlv.exe

复制一下

放到golang中

然后运行

借鉴地址:

go - Mac OSX JetBrains Gogland: delve debugging meet "could not launch process: could not fork/exec" - Stack Overflow