always following forked process with GDB
Answered
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?
Please sign in to leave a comment.
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 ?