How to debug carbide C ++ 2.0 online

Source: Internet
Author: User

Source: http://hi.baidu.com/refyl/blog/item/294f5ad11b15d6309b502788.html

 

Required Software: carbide 2.0, Nokia PC kit, SDK of the same version as the mobile phone

Required hardware: Computer, s60 mobile phone, data cable

In some cases, the program behavior on the simulator is inconsistent with that on the real machine and requires real machine debugging.

Debugging tutorials for carbide 1.3 are available on the Nokia forum. 2.0 of the debugging process is also different.

Connect your phone to your computer using the data cable and select PC kit. Establish a USB connection.

Set the compilation option to armv5 debug or gcce debug.

Compile the version, package it, and install it on your mobile phone.

Click the menu bar: Run --> debug configure...

In the pop-up configuration window, double-click Symbian OS application TRK to create a new TRK configuration instance.

Create a user connection on the main tab, and select USB for connection type. Go to next, select the port in the form of serier port such as comx-USB, and select the same mobile phone version as the device SDK. Select TRK for service (unique ).

Switch to the next tab and install remote agents. Select the corresponding version of application TRK 3.0.9 installer.

Run the application TRK program after the mobile phone is installed. Select USB for connection type and try to connect. When the connection fails, modify the port number and Add 1 successively until the connection is successful.

Return to the computer and click "intitate service test" to test whether the connection is successful.

Keep TRK running on the phone and Debug on the computer. The mobile phone will automatically open the program to be tested.

After running, you can perform debugging, set breakpoints, and observe variable values.

 

That's simple.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.