From 80a875a9a54e26c2ea4c90aee8fe606ddcc27c55 Mon Sep 17 00:00:00 2001 From: conanoc Date: Sun, 19 Aug 2018 08:37:43 +0900 Subject: [PATCH] Update HACKING.md Added some info in debugging section. [ Squashed: Guide to use configure. --RR ] --- doc/HACKING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/HACKING.md b/doc/HACKING.md index 9cf984a6f..35f544a62 100644 --- a/doc/HACKING.md +++ b/doc/HACKING.md @@ -96,6 +96,8 @@ Here's a list of parts, with notes: Debugging --------- +You can build c-lightning with DEVELOPER=1 to use dev commands listed in ``cli/lightning-cli help``. ``./configure --enable-developer`` will do that. You can log console messages with log_info() in lightningd and status_trace() in other subdaemons. + You can debug crashing subdaemons with the argument `--dev-debugger=lightning_channeld`, where `channeld` is the subdaemon name. It will print out (to stderr) a command such as: