delve Questions

4

Solved

we are trying to debug Go code and getting this error: could not launch process: decoding dwarf section info at offset 0x0: too short our settings: WITSC02X6385JGH:orderer sjain68$ uname -a Dar...
Memorial asked 23/1, 2019 at 18:45

3

I am following the "Little Go Book" by Karl Seguin, in order to learn Go. My working environment is Visual Studio Code. Upon debugging, when I try to call a function from the debug console, i get...
Intersperse asked 3/10, 2019 at 10:58

4

Solved

I am trying to run sudo dlv debug on Arch Linux and I keep getting following error: error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. exit status 1 When I r...
Personnel asked 18/5, 2022 at 15:47

3

How does one update their Go Delve Debugger? I"m receiving the following error when I try to set the api version: unknown flag: --api-version My dlv looks out of date: $dlv version Delve Debugge...
Bertram asked 15/3, 2019 at 23:1

4

I have been trying to install delve in my environment. However , delve fails to start and I can't solve this problem. OS: OSX Yosemite 10.10.4 Darwin Kernel Version 14.4.0 $GOPATH/bin/dlv debug...
Lockyer asked 19/3, 2016 at 16:9

1

My current development setup is a docker file that compiles the code on every save with CompileDaemon, and debug with Delve. Currently I get almost everything to work. The only problem is that the ...
Temper asked 21/8, 2020 at 22:38

4

Solved

I want to be able to run and debug unit tests within VS Code using the test explorer or code lens. But in order to run my tests, I need to add this flag: -ldflags "-X google.golang.org/protobu...
Stacystadholder asked 8/9, 2022 at 10:45

0

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 ...
Aprilette asked 8/2, 2023 at 5:54

4

I'm using the delve go debugger to debug some code. When I try to print a string variable, it gives me an abbreviated version. (dlv) print myString "my string...+539 more" How do I get it to pri...
Antenna asked 20/9, 2018 at 1:30

1

This question is about remote debugging of golang code using the delve debugger. Specifically, how to disconnect the client debugger without killing the remote process. I run a process inside a do...
Daytoday asked 8/1, 2020 at 18:37

3

Solved

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. ...
Belovo asked 30/10, 2022 at 4:47

6

Solved

I have installed the Go extension for VS Code, but unable to make it work. "dlv debug" works alright from the terminal. dlv debug src/github.com/user/hello The launch.json: { "version": "0.2...
Quiberon asked 20/8, 2016 at 21:22

1

Solved

I am trying to containerize a debug version Golang application of my own with Golang debugging delve build in. Here is how I can debug my Golang application locally , it is a very simple RSS reader...
Credit asked 8/6, 2022 at 3:52

2

While debugging Go using delve only the local variables are shown. I can't see all the global variables. Are there any settings change to see the list of all variables Here a is not showing, even w...
Hardison asked 17/8, 2018 at 5:43

1

I want to capture the OS signal and do some exit jobs when I terminate the vscode golang debugger. I have code as below: sigalChan := make(chan os.Signal, 1) signal.Notify(sigalChan, syscall.SIGINT...
Nippur asked 24/3, 2022 at 12:39

5

Solved

In C# the executing program can detect if it's running in the debugger using: System.Diagnostics.Debugger.IsAttached Is there an equivalent in Go? I have some timeouts which I would like to be d...
Humour asked 19/12, 2017 at 2:7

1

Solved

Ubuntu. vscode 1.62.1. go1.17.3. vscode go extension v0.29.0. delve v1.7.1. I'm new to vscode and Go. I have many years of experience debugging Java apps in Eclipse. I've constructed a small multi-...
Antependium asked 11/11, 2021 at 23:15

2

consider the small snippet below: package main import ( "fmt" "sync" ) func main() { var wg sync.WaitGroup wg.Add(2) go func() { defer wg.Done() for i := 1; i < 100; i++ { fmt.Println...
Satsuma asked 13/4, 2020 at 3:24

1

Solved

How do you stop delve headless debugger? Note: I am runningthis from a docker container on mac, and installed like this: go get -u github.com/derekparker/delve/cmd/dlv From this it starts ok, b...
Disjunctive asked 4/12, 2018 at 15:25

5

Solved

So I installed VSCODE on my windows machine as my main golang IDE and I guess my overall lack of go knowledge is making me experience this seemingly unsolvable error: I installed delve and wanted ...
Gambrel asked 12/9, 2016 at 20:44

2

Solved

I have a Visual Studio Code environment with the Linux Subsystem for windows running and it's compiling and running a Go project just fine. Now I'm trying to get the delve debugger running followi...
Jonjona asked 3/7, 2019 at 10:37

1

I run a process inside a docker container that needs to be debugged. The process is started in the docker's entry point via dlv debug /go/src/path/to/package --headless --listen=:2345 --log for the...
Pasha asked 8/1, 2020 at 19:6

2

I am trying to follow along with the following YouTube video on getting started with Go Debugging. It recommends following the Delve installation instructions on the official Delve github repo. Fo...
Dogcart asked 29/11, 2019 at 20:50

2

Solved

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 v...
Spinal asked 12/9, 2016 at 17:56

2

The title pretty much says it all. The only way I know how to set one is either during the runtime of the program or just before with breakpoint main.main Is there a way I can do this by line nu...
Tenorite asked 8/3, 2016 at 0:43

© 2022 - 2024 — McMap. All rights reserved.