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}}'),
背景: 在升级GO版本到1.11后发现Goland的Debug报错,如下:could not launch process: decoding dwarf section info at offset 0x0: too short. 原因: Goland的dlv不是新版本,导致不能debug调试. 解决: 1.更新dlv,执行如下命令: go get -u github.com/derekparker/delve/cmd/dlv 2.修改Goland的配置,Help->Edit Custom P