The debug of the Ane native code (Android)

Source: Internet
Author: User

Busy a day finally free to continue this tutorial.

The debug of the native code of ANE is actually introduced on Adobe's website, but it's also very vague, and I've been groping for a while now to record my experience. First you have to install Eclipse and then you have to start Eclipse and then choose the Ddms interface. Baidu Encyclopedia: DDMS is the full name of the Dalvik Debug Monitor service, is the Android development environment in the Dalvik virtual machine debugging monitoring services. It provides us with examples of screenshots for a test device, viewing running threads for a particular process, and heap information, LOGCAT, broadcast status information, analog phone calls, receiving SMS, virtual geographic coordinates, and more. We can use the DDMS tool to view the status of the programs running on the phone, print out their logs, of course, the prerequisite is that the program must be marked as Debug. Use Flashbuilder to compile air, although you choose Debug Mode ()

You still can't see your program on the ddms,devices. Do not know is flashbuilder beginner's mind or what, the official note does not have a clear explanation of how we set up the Android debug mode.

So how to set the Android platform debug mode is actually very simple. Open the Gamemain-app.xml in your src directory and add the Red box section to the Android configuration instructions. This way our program is labeled "Debug".  Restart Flashbuilder Debug, wait for the program on the phone to run, and then we can find our program in the DDMS. is not very excited ~ as a lot of people excited to click on the Green Debugging button, the moment a dialog box a heart sank down!

Don't get excited, it's normal, because we're not a "normal" app after all, so how do you do it? We need to add a special debug listener!

Note the number "8601" in the red box, which is the port where we added debug listening. Then click Debug-debugconfigurations to open the Debug configuration panel!

Note the Red Box place

Select the corresponding ANE project and fill in the port you just got. Then click the Debug button. At this point you will find the debug icon on the left side of the program is lit. Debug is also correct to jump to your ANE project ~ Sao years to start your ane-native debugging trip ~ Enjoy the break point, a single-step test. And so what, is a debug successful!

The debug of the Ane native code (Android)

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.