Questions tagged [dlv]
14 questions
5
votes
0 answers
Golang dlv debugger stopped working after intel mac 13.2 ventura upgrade
Ever since I upgraded my intel mac to 13.2 Ventura, my golang debugger is no longer working.
go -> 1.18
dlv -> 1.20.1
When I try to attach to the go process, I am getting an error message as 'could not attach to pid 19474: stub exited while waiting…

Nertim
- 59
- 1
4
votes
1 answer
kubectl logs displays only 'API server listening at: [::]:40000' when remote debugging with dlv is enabled - How do I get my logs back?
I currently have a go app that uses a lot fmt.printf. Whenever that app would run in a pod I was able to get the logs back by doing
kubectl logs podname
However I also needed to integrate remote debugging. I need to use dlv to allow my ide(GoLand)…

Rajeshwar
- 11,179
- 26
- 86
- 158
4
votes
3 answers
Dockerfile issue - Why is the binary dlv not being found - No such file or directory
I had a docker file that was working fine. However to remote debug it , I read that I needed to install dlv on it and then I need to run dlv and pass the parameter of the app I am trying to debug. So after installing dlv on it and attempting to run…

Rajeshwar
- 11,179
- 26
- 86
- 158
1
vote
0 answers
Go program debug error: NewBulk too big: nbit=20196 count=986153 nword=632 size=623248696
currently using
go version go1.20 linux/amd64
go…

Mandar Kulkarni
- 41
- 3
1
vote
1 answer
DLV debug issue to go application running in docker container
I am currently facing an issue related to setting the root token ID to a previous value in the HashiCorp Vault Go code. I have tried debugging the application using dlv debug within a Docker container. However, when attempting to run the application…

Michael Odumosu
- 55
- 6
1
vote
1 answer
golang bazel docker error: could not launch process: fork/exec /go/src/my_bin_svc: function not implemented
I am trying to setup a Delve (dlv) debugger for a GO binary that was built with Bazel.
The binary is to be run within Docker. It runs fine on its own.
But when i try to setup Delve ( dlv ) i get the following error:
could not launch process:…

Dmitry K
- 7
- 2
1
vote
2 answers
Get sizeof internal go struct
I've been playing with uprobes. In order to probe a specific object in runtime, I need to know the size of internal go struct. In my case, the poll.FD. I could count each nested struct manually, but this could increase the complexity if we are…

nav
- 410
- 6
- 14
1
vote
2 answers
Unable to evaluate functions in Go debugging using delve
I'm on an M1 Mac (ARM64 chip) and still unable to invoke functions via the debugger in VSCode which is using the DLV backend.
Debug Console
call test()
Unable to evaluate expression: could not find symbol value for test
test()
Unable to evaluate…

user38643
- 341
- 1
- 7
1
vote
0 answers
Golang: Is it possible to configure dlv to run in a path different from my application?
I'm working on a CLI system and would like to know how I can run the dlv in a different path than my application, in order to be able to debug some issues. It is possible?
I've already tried to perform some configurations within the vscode debug…

Gustavo Freitas
- 11
- 2
1
vote
0 answers
dlv debug error: could not launch process: fork/exec ./demo function not implemented
I encounter error when I launched a dlv debug process in docker with Goland IDE. Could anyone give me some help or has encountered this same issue?
root@d91e9c7df361:/workdir/demo# dlv --listen=:40000 --headless=true --api-version=2…

Michael
- 11
- 3
1
vote
0 answers
How to source files for dlv golang core
I am trying to debug core in golang using delve.
However for, there is mismatch in directory when loading the backtrace
Instead of loading it as x/y/src/test/count.go it is loading it as x/y/test/count.go
Because of which I am not able to list the…

Kakarott
- 73
- 2
0
votes
1 answer
dlv attach got panic: not an Int
when I installed dlv and trying to attach a pid, I got panic:
dlv attach 1
panic: not an Int
goroutine 1 [running]:
go/constant.Int64Val(0x0, 0x0, 0xc, 0xc0074ff300)
/usr/local/go/src/go/constant/value.go:499…

fio
- 23
- 5
0
votes
0 answers
Filed download and install Go modules dlv & gopls in VSCode
When i run my Go code in VSCode i needed install some modules. All modules normal downloaded and installing but 2 moduled (dlv & gopls) filed.
Tools environment: GOPATH=/home/user/project
Installing 2 tools at /home/user/project/bin in module mode.
…

GoGoMan
- 21
- 1
0
votes
1 answer
remote debug golang dlv wait for a client to connect before continuing the code (visual studio code client)
I like to be able do very simple thing wait for the client to connect to dlv debugger before continue the code without success .
i have simple go server :
package main
import (
"fmt"
"net/http"
)
func hello(w http.ResponseWriter, req…

user63898
- 29,839
- 85
- 272
- 514