-
Notifications
You must be signed in to change notification settings - Fork 770
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
debug: Cannot Debug goyacc file #1674
Comments
@acekingke We need more info. Is there any error message shown in the DEBUG CONSOLE pane or popup message? |
NO message, just cannot break at breakpoint |
@acekingke Can you please update the extension to the latest (v0.27.0) and enable verbose logging and share what's printed in DEBUG CONSOLE pane? To enable verbose logging:
|
It is updated to v0.27.0.
|
Thanks @aceking Looks like the breakpoint couldn't be found from the compiled binary. There are visual signals for unverified breakpoints
Not sure why this happened. My current guess is the symlink - @acekingke what is the relationship between
|
It's not symlink |
/root/temp is my code directory ,I don't why /dev occur here |
1 similar comment
/root/temp is my code directory ,I don't why /dev occur here |
Sorry I cannot guess your file system set up but the extension and go command's behavior. The If the problem persists, I think one option is to use the |
For asking questions, see:
#vscode
channel in Gophers SlackBefore filing an issue, please review our troubleshooting guides
Please answer these questions before submitting your issue. Thanks!
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Go from the VS Code integrated terminal.go version go1.16.6 linux/amd64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.➜ ~ gopls -v version
Build info
golang.org/x/tools/gopls v0.7.1
golang.org/x/tools/[email protected] h1:Mh3Z8Xcoq3Zy7ksSlwDV/nzQSbjFf06A+L+F8YHq55U=
github.com/BurntSushi/[email protected] h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/google/[email protected] h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/[email protected] h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
golang.org/x/[email protected] h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/[email protected] h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE=
golang.org/x/[email protected] h1:ZC/gVBZl8poJyKzWLxxlsmhayVGosF4mohR35szD5Bg=
golang.org/x/[email protected] h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
honnef.co/go/[email protected] h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE=
mvdan.cc/[email protected] h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA=
mvdan.cc/xurls/[email protected] h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A
Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.➜ ~ code -v
1.59.0
379476f0e13988d90fab105c5c19e7abc8b1dea8
x64
Check your installed extensions to get the version of the VS Code Go extension
Go
v0.26.0
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.Checking configured tools....
GOBIN: undefined
toolsGopath:
gopath: /root/gopath
GOROOT: /root/go
PATH: /root/go/bin:/root/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/bin:/root/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/gopath/bin:/usr/local/bin
gopkgs: gopkgs not installed
go-outline: /root/gopath/bin/go-outline installed
gotests: /root/gopath/bin/gotests installed
gomodifytags: gomodifytags not installed
impl: impl not installed
goplay: goplay not installed
dlv: /root/gopath/bin/dlv installed
dlv-dap: dlv-dap not installed
staticcheck: staticcheck not installed
gopls: /root/gopath/bin/gopls installed
go env
Workspace Folder (radondb-mysql-kubernetes): /root/radondb-mysql-kubernetes
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/gopath"
GOPRIVATE=""
GOPROXY="https://goproxy.io"
GOROOT="/root/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/root/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.6"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/root/radondb-mysql-kubernetes/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build570529864=/tmp/go-build -gno-record-gcc-switches"
Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
I add expr.y , and
go generate
, But it cannot breakpoint for itThe debug launch.json as follow:
Steps to reproduce the behavior:
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
The text was updated successfully, but these errors were encountered: