Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

问题:无法获取最新的go-delve模块对go程序进行调试 #212

Closed
Leizhixin opened this issue Jun 7, 2024 · 2 comments
Closed

Comments

@Leizhixin
Copy link

你确定我们的常见问题页面中没有你想要询问的问题吗?

当你执行 go version 命令后的输出结果是什么?

$ go version


当你执行 go env 命令后的输出结果是什么?

go env 的输出结果
$ go env

set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\leizx\AppData\Local\go-build
set GOENV=C:\Users\leizx\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\leizx\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\leizx\go
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=E:\golang-exe
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=E:\golang-exe\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.22.1
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\leizx\AppData\Local\Temp\go-build89823262=/tmp/go-build -gno-record-gcc-switches

你做了什么?

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

go: module github.com/go-delve/delve/cmd/dlv: Get "https://goproxy.cn/github.com/go-delve/delve/cmd/dlv/@v/list": dial tcp 220.181.173.41:443: connectex: A connection attempt failed because the connected party did not properly respo
nd after a period of time, or established connection failed because connected host has failed to respond.

你期望看到的结果是什么?

你实际看到的结果是什么?

@aofei
Copy link
Member

aofei commented Jun 7, 2024

这个看着应该是本地网络环境的问题,可以刷新下本地 dns 缓存试试

@aofei
Copy link
Member

aofei commented Aug 14, 2024

由于长时间未回复,这个 issue 我就先关闭了。如果还有其他问题欢迎随时提问。

@aofei aofei closed this as completed Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants