AppCode 2021.1 Help

Attach to process

The Attach to process feature allows you to debug a project which you are developing in AppCode, but that you are unable to launch directly from your IDE for some reason.

You can attach to local processes as well as to the processes on remote iOS devices.

Attach to a process

  1. From the main menu, choose Run | Attach to Process or press ⌃⌥F5.

  2. From the list of available processes, select the desired process.

    Select a process to attach

    Simplify your search by typing the first letters of its name or PID.

    Search for a process to attach

  3. Proceed with debugging the same way as you usually do it in AppCode (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.

  4. When finished, detach the process: select Run | Stop or click the Stop the process button Suspend of the Debug tool window.

Last modified: 13 April 2021