go升级后vscode调试debug失效Version of Delve is too old for this version of Go (maximum supp...

栏目: IT技术 · 发布时间: 4年前

内容简介:因为dlv的版本不支持的原因,重新下一个即可已经有了就更新一下即可如果已经成功就不需要继续了

过程一

因为dlv的版本不支持的原因,重新下一个即可

go get github.com/go-delve/delve/cmd/dlv

已经有了就更新一下即可

go get -u github.com/go-delve/delve/cmd/dlv

如果已经成功就不需要继续了

过程二

中间可能还会有一个问题,就是包的下载问题

go get提示error: ...is not using a known version control system

错误提示代码

go get -v github.com/go-delve/delve/cmd/dlv

package golang.org/x/tools/go/gcexportdata: directory "E:\go\golang\src\golang.org\x\tools\go\gcexportdata" is not using a known version control system

这个原因是github.com/go-delve/delve/cmd/dlv 包直接下载的zip压缩包文件,修改文件名中-master因此没有加入到git版本控制系统中

所以报了这个错误

正确的方法:

1. 先从复制项目地址 github.com/go-delve/delve/cmd/dlv

2. 使用gitbash进入到需要放置此代码的位置

3. 使用 git clone github.com/go-delve/delve/cmd/dlv

这时候,执行debug调试的时候,他可能会提示你需要安装,右下角会出现一个提示你install,直接点击这个install,安装完成即可

go升级后vscode调试debug失效Version of Delve is too old for this version of Go (maximum supp...

image.png


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Understanding Machine Learning

Understanding Machine Learning

Shai Shalev-Shwartz、Shai Ben-David / Cambridge University Press / 2014 / USD 48.51

Machine learning is one of the fastest growing areas of computer science, with far-reaching applications. The aim of this textbook is to introduce machine learning, and the algorithmic paradigms it of......一起来看看 《Understanding Machine Learning》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器