Getting access to the device logs often yields additional information when attempting to isolate an issue with an ANE. We may sometimes ask for you to provide these logs in order for us to debug an issue or isolate a problem.
On Android it is relatively simple to get the device logs. The debugger command line utility (
adb.exe) can be used to output the logs along with installing your application and is packaged as part of AIR at
AIRSDK/lib/android/bin. If you have installed the Android SDK you can also use the version from there.
Note: It is important you have set your device into debug mode.
To access the logs:
You can get more relevant information by using grep to filter the logs. For example, we often use the following:
adb logcat | grep -E --color=always 'distriqt|AndroidRuntime|System.err'
To access the logs:
On iOS, there are 2 types of logs, “Device Logs” and the “Console”. The device logs are crash reports and generally aren’t very useful to us unless we can resymbolcate your application. However the console is quite helpful and contains debugging information output from the ANE’s.
iOS has changed its logging method in iOS 10 so there are 2 ways to retrieve the logs depending on the version of iOS you have on your device.
To get access to the console:
To access the console open the Console application and select the device in the left hand panel.
You can use the filter to search the logs for any relevant information.
It is possible to get the logs on a Windows machine. There are several methods that we have found to be reliable, using iTunes and the other using a program called iTools.
If you know of a better way please let us know and we will add it to this answer.
Using this tool from Blackberry appears to be the best option for Windows developers.
Requires the iOSLogInfo tool and iTunes installed.
OR to write the contents to a log file run:
sdsiosloginfo.exe -d > c:\ios_log.log
It is possible to get the device logs on a Windows machine using a program called iTools. You will need to get a copy of this program, be aware that there are spyware versions of this program so don’t just download any version of it.
We have had users have success with the version from this Chinese website (an english version is available): http://pro.itools.cn/.
We in no way endorse or accept any responsibility for using this program, use at your own risk.
The crash logs are transferred to iTunes everytime you sync your device. These aren’t as helpful as the device logs but can yield information about an issue in some circumstances. To start plugin your device, launch iTunes and start the synchronisation process.
The logs are copied to your file system which you can locate using the following:
Roaming\Apple computer\Logs\CrashReporter\Mobile Device\DEVICENAME
You should see a list of log files starting with the name of the application, locate your application name and open the log
Any links to third-party software available on this website are provided “as is” without warranty of any kind, either expressed or implied and such software is to be used at your own risk.