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 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
You can debug crashing subdaemons with the argument
`--dev-debugger=lightning_channeld`, where `channeld` is the subdaemon name.
`--dev-debugger=channeld`, where `channeld` is the subdaemon name. It
It will print out (to stderr) a command such as:
will run `gnome-terminal` by default with a gdb attached to the
subdaemon when it starts. You can change the terminal used by setting