-
-
Save justinvforvendetta/6e50857b6055a8df7fbe296dbd1d9e28 to your computer and use it in GitHub Desktop.
Start bitcoind in a screen in a debugger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set disable-randomization off | |
set $_exitcode = -999 | |
set height 0 | |
handle SIGTERM nostop print pass | |
handle SIGPIPE nostop | |
define hook-stop | |
if $_exitcode != -999 | |
quit | |
else | |
shell echo | mail -s "NOTICE: app has stopped on unhandled signal" root | |
end | |
end | |
echo .gdbinit: running app\n | |
run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Start bitcoind in a screen in a debugger | |
# This works like -daemon, except that it is possible to jump into the debugger at any time | |
# by attaching to the screen (screen -r). On a crash the debugger will keep running, | |
# on a normal exit it will quit automatically. | |
screen -d -m gdb -x run.gdbscript -args ./verged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment