Unable to stop dlv debug --headless again - running in a docker container on mac
Asked Answered
D

1

12

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, but how do you stop it again.

dlv debug --headless --listen=:2345

ctrl + c etc. do not work - any special trick?

Disjunctive answered 4/12, 2018 at 15:25 Comment(4)
I have same issue. did you find how to stop the process?Tremayne
Nope, let me know if you find it ;-) Probably a bug...Disjunctive
Didn't find either. Just killed the process. ps aux | grep dvl find PID and the kill pid_numberTremayne
I do the same, let hope for the better :-)Disjunctive
C
7

use kill -SIGINT $PID

delve will ignore SIGINT in headless mode

Committeewoman answered 29/10, 2020 at 6:30 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.