mirror of
https://github.com/pi-hole/docs.git
synced 2025-12-20 03:08:45 +00:00
1.2 KiB
1.2 KiB
Once you are used to it, you can skip most of the steps. Debugging FTLDNS is actually quite easy as pihole-FTL has been designed such that a debugger can be attached to an already running process. It can give you insights into how software (not limited to pihole-FTL) works.
- Install
screenandgdbusingsudo apt-get install screen gdb - Start a screen session (it will allow you to come back even if the SSH connection died)
- If you don't know about
screen, then read about it (you will love it!)
- Start a screen session using
screen - Use
sudo gdb -p $(pidof pihole-FTL)to attach the debugger to the already runningpihole-FTLprocess - Once loading of the symbols has finished (the
(gdb)input prompt is shown), runhandle SIGHUP nostop SIGPIPE nostop - Enter
continueto continue operation ofpihole-FTLinside the debugger. All debugger features are now available. - When
pihole-FTLhas crashed, copy&paste the terminal output into a (new) issue. Also typebacktraceand include its output. We might ask for additional information in order to isolate your particular issue.