## Run Mode On-Device Debugging

To implement run mode on-device debugging the following tasks need to be completed.

1. Install device connection software
2. Install Perl
3. Install an SDK
4. Setup environment variables
5. Setup a virtual drive for Techview and Cust Kits
6. Set the default kit in Devices.xml
7. Install the SISX file on the target device
8. Configure TRK connection on the device
9. Create a launch configuration

#### Setup Environment Variables

1. Set EPOCROOT variable
   1. Right click on My Computer and select Properties
   2. Select the Advanced tab
   3. Select the Environmental Variables button
   4. Setup a new System variable called EPOCROOT. The value will depend on the path of the epoc32 folder in the kit, for example:

   Variable name: EPOCROOT
   Variable value: \bin\techview\

NOTE Take note of the location of the epoc32 folder when using multiple kits. Some kits place the epoc32 folder at \bin\techview\ and some kits will place it at the root. If you have multiple installations and switch to a new kit, you will need to change the EPOCROOT path; otherwise build problems may occur. When building the ROM image, scripts may complain about the EPOCROOT path or that it can’t find bldmake.bat if an incorrect EPOCROOT path is set.

2. Set Path to Tools Directory
   1. If using an installer the tools path is set up automatically and points to:
   Variable: PATH
   Value: C:\Program Files\Common Files\Symbian\Tools
   2. If installing from zip files you will need to setup the tools path manually. Add the path to the beginning of the PATH variable:
   Variable: PATH
   Variable Value: \epoc32\tools;\epoc32\gcc\bin;
   3. If using multiple kits that use a mix of installer and zip files then you can set up your PATH variable like this:
   Variable: PATH
   Value: \epoc32\tools;\epoc32\gcc\bin;C:\Program Files\Common Files\Symbian\Tools