Hello,
Since we cannot see any debug information (function name, line number etc…) when run application on the real device (Android), we need a debug build mode with android:debugable=true in the AndroidManifest.xml file.
The “setvbuf” trick cannot use for android build.
"
If you put the following code at the top of your main.lua file you should get all print() output sent to the XCode console:
io.output():setvbuf(‘no’)
"
http://developer.anscamobile.com/forum/2010/12/30/debug-device
some others pain in the axx with debugging Power-By-Corona-Game too:
http://developer.anscamobile.com/forum/2011/01/30/debug
http://developer.anscamobile.com/forum/2011/03/08/android-debug-permission
http://developer.anscamobile.com/forum/2011/03/15/android-keyboard-crash-debug-messages-devices
http://developer.anscamobile.com/forum/2011/03/03/debug-mode-corona-simulatordevice
[import]uid: 9190 topic_id: 8141 reply_id: 308141[/import]