## Attaching to a Symbian OS Process

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

You can also attach to a process in the Symbian OS Data view when debugging.

NOTE You cannot attach to a process running on the emulator. It must be a target device running the Symbian OS and the TRK debug agent.

When attempting to find a process the debugger uses the UID3 to locate the process.

#### Attaching to a Symbian OS Process

1. Import an executable to import it into the Executables view
2. Select any project in the workspace or the binary to attach to in the Executables view

In this example, we select the Executables project created when the binary was imported from the Project Explorer view (Figure 1).

Figure 1 - Executables project created when importing an executable

3. Click Debug () to launch the New Configuration Launch Wizard
4. Select the Attach to Process Launch Configuration option and fill in the requested information
5. Click Debug

The Attach to Process window appears. Click a column title to sort the processes in ascending or descending order to help you locate a specific process or use the filter text box to show specific processes.

Figure 2 - Attach to Process window

6. Select a process, click OK

The Attach to Process window closes. Open a Symbian OS view to show the process and thread information.

NOTE Terminating an Attach to Process session actually kills the process on the device. This means you must restart the process on the device in order to attach to it again.

##### Related references

- Debug View
- Debug Window
- Symbian OS View