在升级GO版本到1.12后发现Goland的Debug报错,以下:could not launch process: decoding dwarf section info at offset 0x0: too short。git
缘由:github
应该是Goland的dlv不是新版本致使不能debug。spa
解决:debug
一、更新dlv,go get -u github.com/derekparker/delve/cmd/dlvget
二、修改Goland的配置,Help->Edit Custom Properties中增长新版dlv的路径配置:dlv.path=$GOPATH/bin/dlv
cmd