生于忧患,咸鱼安乐
Toggle navigation
Home
About Me
Archives
Tags
Go更新后GoLand无法调试
Linux
Go
2021-07-16 18:39:49
1187
0
0
squarefong
Linux
Go
OS:ArchLinux go version:go1.16.5 linux/amd64 GoLand version: 2021.1.3 Debug错误信息: ``` API server listening at: [::]:40487 could not launch process: could not open debug info Debugger finished with the exit code 1 ``` 报错原因:可能是go版本和dlv版本不匹配 参考信息:[JetBrain YourTrack](https://youtrack.jetbrains.com/issue/GO-11164#focus=Comments-27-4919750.0-0) 解决方案:使用新版dlv,具体步骤如下 1.安装dlv ``` go get github.com/go-delve/delve/cmd/dlv ``` 2.找到dlv可执行文件位置 通常在GOPATH下。比如我的就在`/home/square/go/bin/dlv` 3.打开goland的菜单Help找到Edit Custom Properties 添加`dlv.path=/path/to/dlv`,其中/path/to/dlv为上一步中dlv的位置 4.重启golang ~~其实把新装的dlv直接替换golang自带的dlv也行,自带的dlv在[goland安装路径]/plugins/go/lib/dlv/下,但是官方人员建议不这么做,详见上面的参考信息~~
Pre:
记一次为markdown-it添加echart支持
Next:
Rust Digest -- 常见集合
0
likes
1187
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus
Table of content