vscode-go
vscode-go copied to clipboard
The debugger doesn't show pointer values (like 0xf800000040)
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
- Run
go version
to get version of Go from the VS Code integrated terminal.
go version go1.18 darwin/arm64
- Run
gopls -v version
to get version of Gopls from the VS Code integrated terminal.
Build info
----------
golang.org/x/tools/gopls v0.8.1
golang.org/x/tools/[email protected] h1:q5nDpRopYrnF4DN/1o8ZQ7Oar4Yd4I5OtGMx5RyV2/8=
github.com/BurntSushi/[email protected] h1:dtDWrepsVPfW9H/4y7dDgFc2MBUSeJhlaDtK13CxFlU=
github.com/google/[email protected] h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/[email protected] h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
golang.org/x/[email protected] h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/[email protected] h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
golang.org/x/[email protected] h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/[email protected] h1:AOqgMGxa5hFduIlFkKEX87HoRPO9wjyfhqf1yqwybeg=
golang.org/x/[email protected] h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
honnef.co/go/[email protected] h1:MNh1AVMyVX23VUHE2O27jm6lNj3vjO5DexS4A1xvnzk=
mvdan.cc/[email protected] h1:kTojdZo9AcEYbQYhGuLf/zszYthRdhDNDUi2JKTxas4=
mvdan.cc/xurls/[email protected] h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=
go: go1.18
- Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.
1.65.2
c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1
arm64
- Check your installed extensions to get the version of the VS Code Go extension
- v0.32.0
- Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.
Checking configured tools....
GOBIN: undefined
toolsGopath:
gopath: /Users/simo/go
GOROOT: /opt/homebrew/Cellar/go/1.18/libexec
PATH: /Users/simo/.rvm/gems/ruby-2.5.7/bin:/Users/simo/.rvm/gems/ruby-2.5.7@global/bin:/Users/simo/.rvm/rubies/ruby-2.5.7/bin:/Users/simo/.rvm/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/git/bin:/Users/simo/google-cloud-sdk/bin:/usr/local/opt/qt/bin:/usr/local/go/bin:/opt/homebrew/bin:
go: /opt/homebrew/bin/go: go version go1.18 darwin/arm64
go-outline: /Users/simo/go/bin/go-outline (version: v0.0.0-20210608161538-9736a4bde949 built with go: go1.18)
gotests: /Users/simo/go/bin/gotests (version: v1.6.0 built with go: go1.18)
gomodifytags: /Users/simo/go/bin/gomodifytags (version: v1.16.0 built with go: go1.18)
impl: /Users/simo/go/bin/impl (version: v1.1.0 built with go: go1.18)
goplay: /Users/simo/go/bin/goplay (version: v1.0.0 built with go: go1.18)
staticcheck: /Users/simo/go/bin/staticcheck (version: v0.2.2 built with go: go1.18)
gopls: /Users/simo/go/bin/gopls (version: v0.8.1 built with go: go1.18)
go env
Workspace Folder (simo.mqOMP89D): /private/var/folders/sx/d_g7m8mj6fv11vxhj93c3pz40000gn/T/simo.mqOMP89D
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/simo/Library/Caches/go-build"
GOENV="/Users/simo/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/simo/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/simo/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.18/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.18/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/private/var/folders/sx/d_g7m8mj6fv11vxhj93c3pz40000gn/T/simo.mqOMP89D/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sx/d_g7m8mj6fv11vxhj93c3pz40000gn/T/go-build2890518622=/tmp/go-build -gno-record-gcc-switches -fno-common"
Share the Go related settings you have added/edited
None, using stock-standard config
Describe the bug
I can't see hex values for pointer variables while debugging.
I found this from 2018 https://github.com/microsoft/vscode-go/issues/1989 (closed as fixed)
I also see this (still open) issue https://github.com/golang/vscode-go/issues/112 about the pointer values but they are displayed.
I even used the same test code, no pointer values displayed for me:
Thank you for filing this issue. I was just revisiting #112 a couple of days ago. The pointer display has evolved greatly since it was filed. Some things got better, but the pointer address went missing. Please see this detailed update and do comment on what the most ideal UI would be for adding the missing address. Thank you.
@polinasok since this is assigned, I'll move it into the next release milestone. LMK if this should go into On Deck
instead.