Debug project on target device Tutorial

## Debug project on target device

In this example we demonstrate how to debug applications on a remote device using the Symbian Device (Install SIS) remote debug agent. This enables you to test programs on the actual device it will operate on while observing its behavior using the Carbide debugger. The steps to do this include:

1. Connect target device to PC
2. Install CODA 4.x or later on the target device
3. Configure project for downloading
4. Debug project on target device

You debug on a remote device using the exact same methods used for the emulator. Once the project is built and downloaded to the target device, the CODA remote agent then takes control. Then, using the Carbide debugger you can use all the debugger features to exercise the program on the device while monitoring its vitals in the Debug perspective.

#### Debugging a program on a remote device

1. Set breakpoints in the program.

   Set breakpoints at the critical points in the program where you want to stop execution.

2. Click the Debug icon () to launch the program for debugging on the target device.

   Follow the steps in Configure project for downloading to build and launch the program for debugging.

3. Use the Carbide debugger to examine program internals and control its execution.

   Use any of the following features to debug your program:

   - Use the various stepping commands to walk through the program.
   - Examine and change variables and expressions in the Variables view.
   - Examine the stack in the Debug view
   - Review the assembler code in the Disassembly view
   - Examine memory usage in the Memory view

#### Other references

- Remote Target Debugging (Run-mode)