←back to thread

376 points turrini | 1 comments | | HN request time: 0s | source
Show context
alfiedotwtf ◴[] No.42148130[source]
Debugger vs printf:

Has anyone found a reliable way to use a debugger when you have a) multi-process b) multi-threaded c) async d) timeouts? I would love to use a debugger but printf and logs “just work”

replies(4): >>42148913 #>>42149860 #>>42149876 #>>42151188 #
1. Mr-Frog ◴[] No.42149876[source]
I used GDB to debug contributions to the ION Delay-Tolerant-Networking stack, which is composed of dozens of processes. After some practice it became super easy to attach GDB instances to several running processes and watch the C structs be passed between them.