These are chat archives for derekparker/delve
i'm adding delve to a docker-compose setup. each container has a web server process that we may or may not want to debug upon running the complete docker-compose setup. ideally, on running
docker-compose up, all containers would get up and running, and if we wanted to debug a particular container, we could remote-attach to that container's web server process after the web server has started running. then we could set breakpoints in the HTTP handlers & debug to our heart's content.
is it possible for
dlv debug to initiate a debug session and automatically "continue" so that the process begins running? now it seems that one must run
dlv debug --headless and then in a separate terminal attach to the debug session & "continue" it manually.
dlv attach --headless <pid>then connect to it from outside the container
dlv debug some/package --headless --init <(echo continue)