My game is crashing on the device at startup yet not in the simulator and it doesn’t print anything out to the XCode console so debugging it is quite tricky, does anyone know of a better way of debugging things like this? [import]uid: 5833 topic_id: 3473 reply_id: 303473[/import]
Any one have any ideas on this? I can send code/build if that would help at all. [import]uid: 5833 topic_id: 3473 reply_id: 10552[/import]
Hi Graham,
that can be so many things. I am on my way out to work but could look at it tonight. Send the code to
mike (at) fantomgl (dot) com
Cheers
Michael [import]uid: 5712 topic_id: 3473 reply_id: 10558[/import]
Hi Mike,
Yea I worded that slightly wrong, by “any ideas” I meant on ways of debugging this sort of error.
Thanks once again for offering your help, it is very much appreciated. I have sent you an email with a link to the code.
Thanks again,
Graham [import]uid: 5833 topic_id: 3473 reply_id: 10581[/import]
You may need to add the following to the top of your main.lua file to disable output buffering (so messages appear now rather than later).
io.output():setvbuf('no') -- \*\*debug: disable output buffering for Xcode Console
- Connect your device to your computer.
- Open Xcode Organizer and select the Console tab.
- Launch your app on the device and watch for any output in the console.
Tim
[import]uid: 8196 topic_id: 3473 reply_id: 10612[/import]
Sadly even with that I get no output to the XCode console upon crash. [import]uid: 5833 topic_id: 3473 reply_id: 10625[/import]