## Attach to Process Launch Configuration

Use the Symbian OS Attach to Process launch configuration to attach the debugger to an already running Symbian OS process or thread on a target device from within any project. This is useful for debugging servers running in RAM in a client-server relationship where the client relies on the presence of the server process to operate as one example.

Attaching to a process requires a both target device running the Symbian OS and the presence of a TRK debug agent on the device. You can also use the Symbian OS Data view to attach to a process while debugging. However, you can not attach to a process running on an emulator.

If the New Launch Configuration Wizard created the Attach to Process launch configuration no changes are usually needed. The Attach to Process options match those of System TRK with one additional step, selection of the process to debug in the Attach to Process dialog.

To modify the launch configuration settings, select the Run > Debug As menu option to open the Debug dialog. Select the Attach to Process configuration and click a tab to set specific options. Click Apply to save any option modifications. Click Debug to launch a debugging session using the new settings.

Figure 1. Attach to Process launch configuration in the Debug dialog

The Attach to Process launch configuration panes include:

- The Main tab defines the project to be launched. Enter the name of the project in the Project field, and the executable name in the Executable field.
- The Debugger tab defines debug configurations, such as entry point to begin debugging, target options, and instruction set.
- The ROM Log tab allows you to specify where the ROM log file is stored and the Epoc32 directory.
- The Executables tab allows you to specify which executables that you want to debug that are part of the project.
- The Source tab (standard CDT page) defines the location of source files used to display source when debugging an application. By default, these settings are derived from the associated project's build path. You may override these settings here.
- The Common tab (standard CDT page) defines general information about the launch configuration. You may choose to store the launch configuration in a specific file.

#### Other references

- Launch Configuration Overview