IntelliJ IDEA
 
Get IntelliJ IDEA

Attach to process

Last modified: 24 October 2024

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.

While IntelliJ IDEA debugger is capable of attaching to any process, it is recommended to prefer a simpler way when there is one. You don't want to remotely attach to a 'hello world' running on the same machine.

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.