CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Attach to process

Last modified: 12 November 2021

Run | Attach to Process Ctrl+Alt+F5

CLion provides a way to attach the debugger to both local and remote processes.

For C/C++ applications, you can attach to a process with GDB on Windows, LLDB on macOS, and both GDB and LLDB on Linux. When applicable, debuggers for other languages (for example, Python debugger or Swift LLDB) can be used as well.

First off, if you want to debug a program that can be started from CLion, the best way to do it is to start a local debugging session.