How about adding debug build option to CORONA's builder?

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]

OK, sorry about my suggestion.
Since you guy used LUA binding to native engine in C or C++, then compile to ipa or apk file, is there something relate to option “-s : Strip debug information” in your build command?

Some time we need debug information about function name and error position (line number) on the real device, our game with corona do not know what function name and it’s position(it will print something like “error at ? function at ? line” in the error message) [import]uid: 9190 topic_id: 8141 reply_id: 29102[/import]

I don`to know how to debug in corona sdk.
Some times I get only an “Runtime error” in the console, and nothing more…
Do you have any tips for it? How do you do to discover the problems in the simulator, and in the devices?

Thank you [import]uid: 6732 topic_id: 8141 reply_id: 35493[/import]