llms.txt: machine-readable documentation index. Markdown version of this page is also available.

CLion 2026.2 Help

Debug forked processes

In CLion, you can debug child processes created with the fork function. Use the context menu of the Threads & Variables pane to set up the follow and detach policies:

Follow/detach policies
 for multiprocess debug

These global settings change the debugger’s behavior.

Note that LLDB allows debugging only one process at a time, so the Detach Process on Fork is always selected for LLDB. GDB allows multiple connections and switching between them.

14 March 2024