AppCode 2023.1 Help

Attach to process

AppCode provides a way to attach the debugger to local processes as well as to the processes on remote iOS devices.

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

Attach to a local process

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

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

    Select a process to attach

    If necessary, narrow down the list of processes by typing the first letters of its name or PID.

    Select 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.

Detach from a process

The procedure to detach from a remote process is the same as for stopping a local debug session, however, the effect is different. When you detach, the debugging session closes but the process continues to run.

  • 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: 27 March 2023