Can I use GDB to debug a running process?

Justin Ethier picture Justin Ethier · Feb 22, 2010 · Viewed 156.3k times · Source

Under linux, can I use GDB to debug a process that is currently running?

Answer

Nikolai Fetissov picture Nikolai Fetissov · Feb 22, 2010

You can attach to a running process with gdb -p PID.