mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +01:00
hacking: document subdaemon debugging
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Rusty Russell
parent
4a12cafe7f
commit
3e3dbfdd1b
@@ -86,6 +86,18 @@ Here's a list of parts, with notes:
|
|||||||
|
|
||||||
* onchaind/ - daemon to hand a single channel which has had its funding transaction spent.
|
* onchaind/ - daemon to hand a single channel which has had its funding transaction spent.
|
||||||
|
|
||||||
|
Debugging
|
||||||
|
---------
|
||||||
|
|
||||||
|
You can debug crashing subdaemons with the argument
|
||||||
|
`--dev-debugger=lightning_channeld`, where `channeld` is the subdaemon name. It
|
||||||
|
will print out a command such as:
|
||||||
|
|
||||||
|
gdb -ex 'attach 22398' lightning_channeld -ex return
|
||||||
|
|
||||||
|
Run this command to start debugging. You may need to type `return` one more time
|
||||||
|
to exit the infinite while loop, otherwise you can type `continue` to begin.
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user