Skip to content

GoDebugTest fails #2002

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
iselind opened this issue Sep 26, 2018 · 6 comments
Closed

GoDebugTest fails #2002

iselind opened this issue Sep 26, 2018 · 6 comments

Comments

@iselind
Copy link

iselind commented Sep 26, 2018

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

I wanted to try the GoDebug* set of commands. I set a break point with :GoDebugBreakpoint in one if my unittested functions. Then i executed :GoDebugTest.

What did you expect to happen?

I expected to see some form of debugger i guess. I didn't know quite what to expect as i've not used the GoDebug* set of command before.

What happened instead?

vim-go: Starting GoDebug...
vim-go: can't load package: package debugger: cannot find package "debugger" in any of:
vim-go:         /usr/local/go/src/debugger (from $GOROOT)
vim-go:         /home/patriki/projekt/aws/idd-images/src/debugger (from $GOPATH)
vim-go:         /home/patriki/go/src/debugger

This even though i have debugger installed, but it's installed in /home/patriki/go/src/github.com/derekparker/delve/service/debugger.

Configuration (MUST fill this out):

  • vim-go version:
    SHA-1: b6381dd

  • vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):
    vimrc content not relevant here i think.

  • Vim version (first three lines from :version):

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 30 2017 18:21:38)
Included patches: 1-197, 322, 377-378, 550, 703, 706-707
Modified by [email protected]
Compiled by [email protected]
  • Go version (go version):
    go version go1.11 linux/amd64

  • Go environment (go env):

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/patriki/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/patriki/projekt/aws/idd-images:/home/patriki/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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-build985623779=/tmp/go-build -gno-record-gcc-switches"
@bhcleek
Copy link
Collaborator

bhcleek commented Sep 26, 2018

This should be fixed in #1992. Can you give it a try?

@rjansen
Copy link

rjansen commented Sep 26, 2018

I have the same issue. I will try the commit #1992

@rjansen
Copy link

rjansen commented Sep 26, 2018

I have the same issue. I will try the commit #1992

The #1992 fix the problem and the GoDebugStart works fine.

@iselind
Copy link
Author

iselind commented Oct 8, 2018

Sorry for the delay in responding. #1992 solves the issue.

Is there some tutorial on how to use the GoDebug mode?

@bhcleek
Copy link
Collaborator

bhcleek commented Oct 8, 2018

The help file is currently the best resource for understanding the debugging feature. See :help go-debug.

@iselind
Copy link
Author

iselind commented Oct 9, 2018

Thanks a lot for your time, much appreciated!

@iselind iselind closed this as completed Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants