在升級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