Introduction
Series 40 On-Device DebuggerODD) is a development and debugging tool recently released by Nokia. ODD can help developers debug Java programs on real machines. Compared with simulator debugging, ODD real machine debugging can obtain more accurate running results and obtain real and effective data, such as Cell-ID, battery power, and signal strength.
You can find more latest information about ODD On the homepage of Series 40 On-Device Debugger. You can download the beta version of ODD.
Currently, ODD supports the following mobile phones:
- Series 40 6th Edition, Feature Pack 1
- Series 40 6th Edition
- Nokia C3-00
- Nokia X2-00
- Nokia X2-01
- Series 40 6th Edition Lite
Before installing ODD, make sure that your PC supports Bluetooth. Because it is connected through Bluetooth during online debugging, rather than data lines.
Here we take Eclipse as an example. If you use Netbeans for development, see the Netbeans video.
Install ODD
Extract the compressed package series_40_on_device_debugger_v0_2_en.zip that can be downloaded to oddto "C: \ myplatform". Note that this directory is fixed and cannot be changed. The decompressed directory is as follows:
Configure ODD in Eclipse
Open the "Windows-> Preferences" menu of Eclipse, and click "Import," on the right of "Device Management.
In the displayed window, click "Browse", select "C: \ myplatform", and then press "OK ".
If everything is normal, you will see that Eclipse has found the ODD named "series 40 on-device debugger version 0.2 beta.
Click "Finish" to complete this step.
Select ODD in the project
In Eclipse's "Project Explorer", right-click the Project name and choose "Properties" from the shortcut menu ", select "series 40 on-Device debugger version 0.2 beta" that we just configured in "device-> Group" in "j2_m3 ". Click OK.
Install the ODD client on your mobile phone
Online debugging also requires you to install the ODD client on your mobile phone. The client has two versions:
- Single SIM card: Media: DebuggerMIDlet_SingleSIM.zip
- Dual SIM card: Media: DebuggerMIDlet_DualSIM.zip
Download and install it on your mobile phone as needed. Note that the ODD client cannot be installed on the mobile phone through the Nokia Ovi or PC kit.
After the installation is complete, run the ODD client on your mobile phone and select "Bluetooth" for Bluetooth connection.
Connect ODD and client
Run the MIDlet in the project mentioned in "select ODD in Project", and "Connection Manager" will automatically start.
Click "Add Device" on the right. In the displayed window, select "Bluetooth" and click "Next" to go to the Next step.
Next, click "Search" to Search for the bluetooth device. After the Search is complete, select the mobile phone to be debugged online from the listed devices and click "Connect" to Connect to the device. In this case, you must accept the connection request on your mobile phone.
Install the Development Library
After the ODD is connected to the client, click "Options" in "Connection Manager" and click "Get API.zip" in the pop-up window"
In the displayed window, select the "“api.zip" file in the c: \ myplatform \ lib”directory.
So far, ODD has been installed. Run MIDlet again to observe the running result on the mobile phone.