Skip to content

Commit e5b49cc

Browse files
authored
Merge pull request #1058 from pi-hole/gdb
Use PID file instead of pidof output for gdb debugging
2 parents f6672e2 + c06dbe0 commit e5b49cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ftldns/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Once you are used to it, you can skip most of the steps. Debugging *FTL*DNS is q
1818

1919
## Start of debugging session
2020

21-
1. Use `sudo gdb -p $(pidof pihole-FTL)` to attach the debugger to the already running `pihole-FTL` process
21+
1. Use `sudo gdb -p $(cat /run/pihole-FTL.pid)` to attach the debugger to the already running `pihole-FTL` process
2222
2. Once loading of the symbols has finished (the `(gdb)` input prompt is shown), enter `continue` to continue the operation of `pihole-FTL` inside the debugger. All debugger features are now available.
2323
3. When `pihole-FTL` has crashed, copy & paste the terminal output into a (new) issue. Also, type `backtrace` and include its output. We might ask for additional information in order to isolate your particular issue.
2424

0 commit comments

Comments
 (0)