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

Attach to process

Last modified: 10 August 2022

Run | Attach to Process Ctrl+Alt+F5

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

The steps to attach to a process depend on how and where the process was launched.

First off, if you want to debug a program that can be started from IntelliJ IDEA, the best way to do so is to start a local debugging session. This way gives you the full debugger functionality while sparing you the overhead of extra configuration.

Options described in this topic are useful in more complicated cases, such as when we need to debug a process that is running remotely, or a process that has been started in a way that does not allow for debugging.