[英]How to update Go's Delve Debugger?
How does one update their Go Delve Debugger? 如何更新Go Delve调试器? I"m receiving the following error when I try to set the api version:
我尝试设置api版本时收到以下错误:
unknown flag: --api-version
My dlv
looks out of date: 我的
dlv
看起来过时了:
$dlv version
Delve Debugger
Version: 0.11.0-alpha
Build:
But I can't figure out how to upgrade it. 但是我不知道如何升级它。 I've tried
go get -u github.com/go-delve/delve/cmd/dlv
and go get -u github.com/derekparker/delve/cmd/dlv
, but neither worked. 我试
go get -u github.com/go-delve/delve/cmd/dlv
并go get -u github.com/derekparker/delve/cmd/dlv
,但是都没有用。 I also tried the suggestion to make install
: 我也尝试了
make install
的建议:
$ git clone https://github.com/go-delve/delve.git $GOPATH/src/github.com/go-delve/delve
$ cd $GOPATH/src/github.com/go-delve/delve
$ make install
But that appears to have no effect: 但这似乎没有效果:
$ dlv version
Delve Debugger
Version: 0.11.0-alpha
Build:
My go version is go version go1.10.1 linux/amd64
and my OS details are below: 我的go版本是
go version go1.10.1 linux/amd64
,我的操作系统详细信息如下:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.11 (jessie)
Release: 8.11
Codename: jessie
This is copied from the issue I opened. 这是从我打开的问题中复制的 。 I thought I'd cross post for greater visibility.
我以为我会交叉张贴以提高知名度。
I came across this problem while using goland. 我在使用goland时遇到了这个问题。 After updating goland, i noticed that access was denied to goland updating the dlv file.
更新goland之后,我注意到拒绝访问goland更新dlv文件。 I was able to fix this by installing goland through snap ( https://www.jetbrains.com/help/go/installation-guide.html#snap ).
我可以通过快照( https://www.jetbrains.com/help/go/installation-guide.html#snap )安装goland来解决此问题。 I was also on linux (Ubuntu 18.04.3 LTS)
我也在Linux(Ubuntu 18.04.3 LTS)上
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.