Goland 不能debug
报错信息
Error running ‘build’: Cannot run program “xxxx/go/bin/dlv” (in directory “/xxxxxx/github.com/filecoin-project/xxxx”): error=2, No such file or directory
解决方案
执行下面命令,然后会在$GOPATH/bin
下生成 dlv
,然后重启Goland
go install github.com/go-delve/delve/cmd/dlv@latest
参考链接
https://blog.youkuaiyun.com/qq_35462323/article/details/111184044