From b43500b8bacd2b004d28622d9ca56e71f55d063f Mon Sep 17 00:00:00 2001 From: matoval Date: Mon, 25 Nov 2024 20:50:17 -0800 Subject: [PATCH] Add Delve debgger to docs --- docs/source/developer_guide.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/source/developer_guide.rst b/docs/source/developer_guide.rst index c2924d4d3..07df0b3aa 100644 --- a/docs/source/developer_guide.rst +++ b/docs/source/developer_guide.rst @@ -26,6 +26,19 @@ Example: echo -e '{"command": "work", "subcommand": "submit", "node": "execution", "worktype": "cat", }\n"Hi"' | socat - UNIX-CONNECT:/tmp/control.sock +^^^^^^^^^^^^^^ +Delve Debugger +^^^^^^^^^^^^^^ +Delve debugger is useful for debugging Go in general but especially good at debugging goroutines. +When running Devle with Receptor we need to pass in a Receptor config file. + +Run Delve with Receptor: + +.. code-block:: bash + + dlv debug cmd/receptor-cl/receptor.go -- --config --config-v2 test-configs/kube-node.yml + + ------- Linters -------