RubyMine 2024.2 Help

Attach to process

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

Prerequisites

Attach to process requires the following components to be installed on the development machine:

  • If you use Linux, install GDB.

  • If you use macOS, make sure that LLDB is installed. Note that LLDB requires the six Python module, which may be missing in your macOS installation.

Attach to a local process

  1. Press Ctrl+Alt+F5 or select Run | Attach to Process from the main menu.

  2. RubyMine will show the list of the running local processes. Select the process to attach to.

    Select a process to attach

    When there are too many processes, you can narrow down the list by typing the first letters of the process name or PID.

  3. Proceed with debugging the same way as you usually do it in RubyMine (set breakpoints, step through, pause and resume the process, evaluate expressions, and so on).

    Note that in case the process you have attached to does not provide debug information, breakpoints will be unavailable and stepping will be performed in the disassembly view.

Detach from a process

The steps to detach from a remote process are the same as for stopping a local debug session. However, unlike local sessions, the target process continues to run after the debugger detaches.

  • Click the Stop the Stop button button on the main toolbar on in the Debug tool window.

  • Alternatively, click Stop the Stop button on the main toolbar or press Ctrl+F2, then select the session to be closed.

Last modified: 24 October 2024