Can I view error messages on the iPad?

When using the simulator, errors are output to the simulator output window. Is there any way to see these same errors when the app is running on an iPad?

Also, is it possible for an error to occur but the app still continues to run on the iPad?

Thanks,

  • Bret [import]uid: 168791 topic_id: 31711 reply_id: 331711[/import]

I use an app called AppSwitch. It has a console tab that shows all the messages to the console of the device. It’s $1.99 though. However it helps with debugging because indeed your app can error and continue running.

When your app errors you either have to guess whats happening (good luck) or connect the device to the Xcode console. With my testers across the globe, who can’t just connect to a Mac, AppSwitch helps. [import]uid: 56820 topic_id: 31711 reply_id: 126688[/import]

anderoth, thanks. $1.99 is a pittance for such a useful app. [import]uid: 160496 topic_id: 31711 reply_id: 126690[/import]

Ditto. Thanks Anderoth! I’ll pick that up tomorrow. I also just ran across the “Glider” IDE (http://www.mydevelopersgames.com/CIDER/) which has some nice debugging features. I might use that to poke around as well. [import]uid: 168791 topic_id: 31711 reply_id: 126693[/import]

I use an app called AppSwitch. It has a console tab that shows all the messages to the console of the device. It’s $1.99 though. However it helps with debugging because indeed your app can error and continue running.

When your app errors you either have to guess whats happening (good luck) or connect the device to the Xcode console. With my testers across the globe, who can’t just connect to a Mac, AppSwitch helps. [import]uid: 56820 topic_id: 31711 reply_id: 126688[/import]

anderoth, thanks. $1.99 is a pittance for such a useful app. [import]uid: 160496 topic_id: 31711 reply_id: 126690[/import]

Ditto. Thanks Anderoth! I’ll pick that up tomorrow. I also just ran across the “Glider” IDE (http://www.mydevelopersgames.com/CIDER/) which has some nice debugging features. I might use that to poke around as well. [import]uid: 168791 topic_id: 31711 reply_id: 126693[/import]

Anderoth,

I purchased the app you were talking about, but I don’t really see any messages on the console. When Corona runs into a bug, does it send the exception output to the console?

Thanks,

  • Bret [import]uid: 168791 topic_id: 31711 reply_id: 127328[/import]

To get messages to go to the console you will need this line of code in your main.lua file.

io.output():setvbuf('no')  

[import]uid: 56820 topic_id: 31711 reply_id: 127329[/import]

Thanks, that worked! [import]uid: 168791 topic_id: 31711 reply_id: 127331[/import]

Anderoth,

I purchased the app you were talking about, but I don’t really see any messages on the console. When Corona runs into a bug, does it send the exception output to the console?

Thanks,

  • Bret [import]uid: 168791 topic_id: 31711 reply_id: 127328[/import]

To get messages to go to the console you will need this line of code in your main.lua file.

io.output():setvbuf('no')  

[import]uid: 56820 topic_id: 31711 reply_id: 127329[/import]

Thanks, that worked! [import]uid: 168791 topic_id: 31711 reply_id: 127331[/import]