Skip to content

Debug Excessively Slow Stepping Through Code #66173

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

Closed
teschste-reyrey opened this issue Mar 7, 2024 · 3 comments
Closed

Debug Excessively Slow Stepping Through Code #66173

teschste-reyrey opened this issue Mar 7, 2024 · 3 comments

Comments

@teschste-reyrey
Copy link

Go version

1.22.1

Output of go env in your module/workspace:

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

What did you do?

Stepped through Go code in VS Code.

What did you see happen?

Instead of each step being almost instantaneous as usual, each step takes anywhere from 2-3 seconds for a 2 line application, to 12-13 seconds for a larger application.

I am not certain what triggered it, though it was shortly after upgrading to v1.22.1 that I noticed it.

If I just run the app in VS Code (assuming there are no errors), it runs fast as usual, this only occurs when stepping through the code.

I moved back down to v1.21.8 to see if it was related to my recent upgrade but the issue remained, so I moved back up to 1.22.1.

Since I saw no other issues like this reported, this is likely something unique to me but I even tried completely uninstalling and reinstalling Go with no improvement and nothing else changed in the timeframe this occurred.

What did you expect to see?

Each step occurring almost instantly as it always has in the past.

@teschste-reyrey
Copy link
Author

Since I also recently upgraded to VS Code 1.87, I tried going back to version 1.86 but that did not help either.

@seankhliao
Copy link
Member

sounds like an issue for the debugger (delve?) and not the go project.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@teschste-reyrey
Copy link
Author

teschste-reyrey commented Jun 10, 2024

Not sure if this changes your thinking at all but this post was just added to the issue I logged under delve. Not sure if this puts the ball back in your court, VS Code's court, or somewhere else but an issue that is potentially "fixed" by switching to a preview version of the Go extension seems concerning. Thoughts?

For what it's worth, switching to Go Nightly did NOT resolve the issue for me, nor did disabling all anti-virus.

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