## Run Mode On-Device Debugging

Run mode on-device debugging enables you to download and launch a project on a phone or target device and debug it using the Carbide debugger. Before you can do that, some setup requirements are required. Once the setup is done, Carbide can then use plug-and-play (PnP) with USB to create a remote connection that connects with the TRK agent on the target device to download, launch, and debug the program.

1. Setup system and development requirements (below)
2. Install Application or System TRK v3.2.6 or later on the target device
3. Connect USB cable to phone or target device for PnP connectivity
4. Create or import a project in the Carbide C/C++ workspace
5. Build the project
6. Debug the project on a phone or target device

#### Setup system and development requirements

All of the following requirements are required to build, communicate, and control programs on a phone or target device.

- Install PC Suite or Ovi Suite on your PC to ensure the correct drivers are installed for connecting to the phone or target device.
- Install the correct version of Perl on your PC to support Symbian OS builds
- Install a supported SDK and make sure its the default
- Configure the environmental variables
- (Optional) Setup a virtual drive to use Techview and Cust Kits

Once you've setup your environment, its time to verify that the TRK agent is on the phone or target device.