always following forked process with GDB
已回答
Hi,
I use GDB.
I would like to debug a forked a process.
I realized that I need to type to GDB:
set detach-on-fork off
set follow-fork-mode child
I would like that this setting will be set automatically for any session. How is it achievable?
请先登录再写评论。
Hello!
I think you can add them to .gdbinit - https://www.jetbrains.com/help/clion/configuring-debugger-options.html#gdb-startup.
Hi,
Isn't there an option to debug them all simultaneously ?