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)