Under linux, can I use GDB to debug a process that is currently running?
You can attach to a running process with gdb -p PID.
gdb -p PID
2.1m questions
2.1m answers
60 comments
57.0k users