## Preconditions to On-Device Debugging

Before you can use on-device debugging to debug 3rd edition and UIQ devices, the following preconditions must be met.

#### Verifying On-device Debugging Preconditions

1. Verify that your system has the following:
   - S60 v3.x, UIQ 2.X or UIQ 3.X kit installed
   - ActivePerl installed
   - RVCT or GCCE compiler
   - USB or Bluetooth capable S60 3rd Edition or UIQ 3rd Edition device
   - USB or Bluetooth support on your PC
   - Nokia PC Suite (or equivilent software) for connecting and installing applications to the device
2. Download and install the current TRK SISX file using the On-Device Setup dialog for debugging S60 5th edition and UIQ devices

The Application TRK debug agents are stored If not, install it now using the On-Device Connections > New Connection Wizard > Install remote agents pane.

NOTE The Application TRK versions included with Carbide is for CE versions of devices only. They are not intended for use with RnD devices.

3. Specify the communication method with the on-target device during the debug session

Start the Application TRK or System TRK on the device. During startup of TRK on the device you must specify the communication method the on-device agent uses to debug the device. Currently, those methods include Bluetooth and USB or a null serial cable. For Bluetooth, you must pair the device with the PC and a valid serial port assigned. For USB, A USB cable must connect the PC to the device and a valid serial port assigned. Use On-Device Setup dialog to make the identification and connection setup quick and easy.

##### Related concepts

- On-device Debugging
- Build Configuration
- Launch Configuration

##### Related reference

- Starting the On-Device TRK Debug Agent

##### Related tasks

- Installing On-device Debug Agents using Bluetooth
- Installing On-device Debug Agents using USB