AIR Native Extensions have been around for years. If you have been using them, you might have faced some debugging problems where your app is crashing with no obvious reasons. You might spend a lot of time trying to figure out what could be wrong in your setup before you would notice that you have missed to set a property or an argument properly. Well, this is why we decided to build a tool to let you easily debug AIR Native Extensions.
We have recently updated our OverrideAIR ANE to V4.0.0 which allows you enable debugging in all of our ANEs.
It will take some time till we apply this into all our ANEs but this is definitely what we are working on which will let you see what is happening in ANEs in runtime.
This ANE has been around for a long time acting only as a dependency but since V4.0.0 we have introduced a new method in it which you can use to enable global debugging.
// import the ANE class to have access to its method
import com.myflashlab.air.extensions.dependency.OverrideAir;
// in your project's constructor method enable the debugger
// It is recommended to do this BEFORE initializing any other ANEs
OverrideAir.enableDebugger(myDebuggerDelegate);
// create a function with three inputs as follow to receive the debugging information
function myDebuggerDelegate($ane:String, $class:String, $msg:String):void
{
trace($ane + "(" + $class + ") " + $msg);
}
Besides this tool, we have also created an ANE inspector tool which tells you if you have embedded all of the dependencies for any specefic ANE we have in MyFLashLabs store.
How to debug Air Native Extensions
AIR Native Extensions have been around for years. If you have been using them, you might have faced some debugging problems where your app is crashing with no obvious reasons. You might spend a lot of time trying to figure out what could be wrong in your setup before you would notice that you have missed to set a property or an argument properly. Well, this is why we decided to build a tool to let you easily debug AIR Native Extensions.
We have recently updated our OverrideAIR ANE to V4.0.0 which allows you enable debugging in all of our ANEs.
This ANE has been around for a long time acting only as a dependency but since V4.0.0 we have introduced a new method in it which you can use to enable global debugging.
Besides this tool, we have also created an ANE inspector tool which tells you if you have embedded all of the dependencies for any specefic ANE we have in MyFLashLabs store.
Enjoy Building AIR Apps,
MyFlashLabs Team ❤
Share this:
Related