Can I use GDB to debug a running process?

前端 未结 8 2026
Happy的楠姐
Happy的楠姐 2020-12-02 05:52

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

8条回答
  •  醉话见心
    2020-12-02 06:36

    The command to use is gdb attach pid where pid is the process id of the process you want to attach to.

提交回复
热议问题