Questions tagged [delve]

Delve is a debugger for Go

Delve is a debugger for the Go. Most Go editors/IDEs use delve as the backend for their debugger features.

Homepage.

201 questions
3
votes
1 answer

Go Delve (1.0.0-rc2) freezes on Windows after breakpoint hit

I have recently been having a problem which essentially makes debugging Go using delve next to impossible. Basically I can't use breakpoints otherwise there is a good chance the debugged code freezes and all I can do is stop the debugger an…
AJR
  • 1,547
  • 5
  • 16
3
votes
1 answer

Delve (dlv) is not able to attach to the process

I'm getting this error back from dlv could not attach to pid 20727: decoding dwarf section info at offset 0x0: too short The binary is built in this way: go build -a -v -ldflags "-w -X main.gitCommit= -linkmode 'auto' -extldflags…
Mazzy
  • 13,354
  • 43
  • 126
  • 207
3
votes
3 answers

golang dlv unable to see source:: no such file or directory

In a docker container: docker run \ --rm -it \ -p 80:80 \ -p 2345:2345 \ -v $(pwd)/src:/go/src/ \ --security-opt="seccomp=unconfined" \ --privileged \ …
Chris G.
  • 23,930
  • 48
  • 177
  • 302
3
votes
0 answers

VSCode or Delve issue - Unable to test at all

I have two projects on GitHub (https://github.com/NlaakStudios) (gowaf and ezgo). Debugging and Testing with VSCode and Delve work perfectly with the gowaf repo using the default launch.json. It does not work with ezgo which is just the config from…
NlaakALD
  • 377
  • 2
  • 6
  • 16
3
votes
1 answer

Confused by vscode delve debugger

I have searched everywhere and tried what I can, but debugging go exes in VSCODE is just acting really weird for me. If I step through code, the debugger seems to jump around all over the place sometimes, as though I was switching threads. Most of…
Sentinel
  • 3,582
  • 1
  • 30
  • 44
3
votes
0 answers

prompt missing running delve using gud in emacs?

Here is the experience running delve from the command line on my Windows 10 desktop using MSYS-2: Now here is the experience running delve from GNU emacs (W64) version 25.1.1 - ShellPrompt> emacs -nw…
3
votes
0 answers

How to debug Golang with build tags in Delve

I am trying to debug Go code with VSCode's Delve. For my testing, I have to run go test with tags every time for every test. Above each of my test funtions, I see run test and debug test options, is there a way to configure launch.json so that the…
OneMoreQuestion
  • 1,693
  • 3
  • 25
  • 51
3
votes
0 answers

Is debugging a termbox-go using program with VSCode and Delve possible?

I'm trying to create a console application using https://github.com/nsf/termbox-go/. As editor, I'm using VSCode with the Go plugin and Delve for debugging. Now the issue is that when I start debugging, I don't see the termbox output in the…
InvisiblePanda
  • 1,589
  • 2
  • 16
  • 39
3
votes
1 answer

Why goland 1.0 EAP tips "#command-line-arguments undefined: NewServer"

When I debug the fabric source code orderer module with Goland 1.0 EAP IDE, it could debug and tips that: GOROOT=/usr/local/Cellar/go/1.8.3/libexec #gosetup GOPATH=/Users/friends/Documents/VirtualMachine/share/gopath…
Jim Green
  • 1,088
  • 3
  • 15
  • 40
3
votes
1 answer

How to get the current user’s Delve URL via Microsoft Graph API

When a user signs into my Web app via Microsoft OAuth2, I want to display her name, email address, and a link to her homepage or profile page. I can get displayName and mail from https://graph.microsoft.com/v1.0/me/, but I haven’t found a homepage…
Tim Strehle
  • 380
  • 2
  • 6
3
votes
1 answer

How to debug Golang application in Docker with VSCode?

I'm learning debug Golang application in Docker. I have success with dlv connect in shell. I could add breakpoint, continue, next... I can do noting in VSCode, but waitting for halting. I click left on function main, until a red point. Then click…
YesQ
  • 31
  • 1
  • 2
3
votes
0 answers

Golang Delve: Drop into debugger when unit test fails

I'm trying to have Delve drop into a debugger when a test from the testing package fails. How can I do this? For reference, I'm looking for functionality similar to nose, pytest, or other python testing packages. Using nose, I can do nosetests…
hlin117
  • 20,764
  • 31
  • 72
  • 93
3
votes
2 answers

Remote debugging - Unverified breakpoint

Hope I can explain this right. Update: I can confirm that dlv debug -l 127.0.0.1:2345 does work. Therefore I must be in VsCode launch.json Update: removed the panic. There was a different in go versions. Now the debugger in VsCode is just not…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
3
votes
1 answer

How to remote debug with Delve debugger in Visual Studio Code

I have already asked, and got a very good answer for debugging locally with delve(golang debugger). Now I am trying to remote debug with Delve using VS Code. I have got a sample app mentioned here, and further github linked to source code here.…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
2
votes
1 answer

Is it possible to preview github.com/shopspring/decimal values in VSCode during debugging?

This is a preview of a normal int64/float64 variable in Go in vscode during debugging. And this is how it looks when using a variable from Decimal library. If that would be possible then debugging would be so much easier. Right now, being a value…
Alex
  • 78
  • 1
  • 6