Skip to content

debugger stops in assembler code file  #3600

Open
@XSven

Description

What did you do? (required: The issue will be closed when not provided)

I have opened a golang source code file. The package is main. I am at a statement line. I am starting the debugger using

GoDebugStart . -url=http://somewhere -n=10 -c=20

The arguments that I have passed are application specific and should not matter. A breakpoint seems to be automatically created at the start of the debugger. I am pressing <F5> (:GoDebugContinue).

What did you expect to happen?

The debugger stops at the given breakpoint.

What happened instead?

When pressing <F5> (:GoDebugContinue) the debugger stops in the file /usr/lib/golang/src/runtime/rt0_linux_amd64.s

This is the vim-go debug output

"main.go" 40L, 641B
vim-go: job command: ['/home/sven.willenbuecher/go/bin/gopls', '-remote=auto']
vim-go: shell command: '/usr/bin/go' 'env' 'GOMOD'
vim-go: shell command: '/usr/bin/go' 'env' 'GOMOD'
vim-go: initializing gopls
vim-go: initialized gopls
vim-go: Finished loading packages.
vim-go: shell command: '/usr/bin/go' 'list'
vim-go: [debug] dispatched
vim-go: job command: ['/home/sven.willenbuecher/go/bin/dlv', 'debug', 'github.com/XSven/hit_project/cmd/hit', '--output', '/tmp/vSahZ1J/8', '--headless', '--api-version', '2', '--listen', '127.0.0.1:8181', '--log', '--log-output', 'debugger,rpc', '--', '-url=http://somewhere', '-n=10', '-c=20']
vim-go: sending to dlv RPCServer.Command
vim-go: sending to dlv RPCServer.ListBreakpoints
vim-go: sending to dlv RPCServer.CreateBreakpoint
vim-go: sending to dlv RPCServer.Command
vim-go: sending to dlv RPCServer.ListBreakpoints
vim-go: sending to dlv RPCServer.LastModified
vim-go: sending to dlv RPCServer.State
vim-go: sending to dlv RPCServer.Stacktrace
vim-go: sending to dlv RPCServer.ListLocalVars
vim-go: sending to dlv RPCServer.ListFunctionArgs
vim-go: sending to dlv RPCServer.ListRegisters
vim-go: current goroutine not found...
vim-go: sending to dlv RPCServer.ListGoroutines
vim-go: No Goroutines Running Now...

Configuration (MUST fill this out):

vim-go version:

1401b57 - 2023-10-02 11:13:19 -0700 (HEAD -> master, origin/master, origin/HEAD) update CHANGELOG.md for #3587 (Billie Cleek <[email protected]>)

vimrc you used to reproduce:

vimrc

Vim version (first three lines from :version):

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 09 2023 00:00:00)
Included patches: 1-2637
Modified by [email protected]

Go version (go version):

go version go1.20.6 linux/amd64

Go environment

go env Output:
GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/sven.willenbuecher/go/bin"
GOCACHE="/home/sven.willenbuecher/.cache/go-build"
GOENV="/home/sven.willenbuecher/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/sven.willenbuecher/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/sven.willenbuecher/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.6"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/sven.willenbuecher/go/src/github.com/XSven/hit_project/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="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3323771479=/tmp/go-build -gno-record-gcc-switches"

gopls version

gopls version Output:
golang.org/x/tools/gopls v0.14.2
    golang.org/x/tools/[email protected] h1:sIw6vjZiuQ9S7s0auUUkHlWgsCkKZFWDHmrge8LYsnc=

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions