How can I setup multi-process debugging for C++?


I am trying to debug C++ processes at the same time.

With gdb, I can use inferior to stop and continue a group of processes at the same time.

How can I do the same thing in CLion? I have tried to run "add-inferior", "inferior 2", "attach PID", but whenever attached to another process, the original process I debugged was detached. This behavior is not the same as GDB.

Please sign in to leave a comment.