I’ve just noted I have a runtime error occurring on the main game scene when I test the device, and I review logs coming out on XCode in the console area. I do not see this on the simulator.
Q1 - Any advice/tips on how to fault find this as so far I haven’t managed to find the issue.
Q2 - Are the line numbers those that I will see in my source files in textmate? i.e. if I see line 401 then it will only come from a LUA file in my project from a line 401? (i.e. if there was a blank line in file X, then it wouldn’t be this one I assume)
Q3 - If I put a few extract blank lines in a file I suspect, then if this file was the culpret the line numbers in the console warnings should increase right? so this would be an indication
Q4 - Any way to get full debug and filename, function names in the console log?
Console Output Snippet
Sep 1 20:50:00 MyIPhone MyApp [18715] \<Warning\>: Runtime error ?:0: attempt to perform arithmetic on upvalue '?' (a nil value) stack traceback: [C]: ? ?: in function \<?:401\> ?: in function \<?:218\> Sep 1 20:50:00 MyIPhone MyApp [18715] \<Warning\>: Runtime error stack traceback: [C]: ? ?: in function \<?:401\> ?: in function \<?:218\>
These warnings are coming many times a second, but actually every third “enterFrame” it seems.
I should not I don’t actually notice any issue as such in the app when I use it. Just noticed the error in the console log. The reason it was an issue is I started to use an error handler, and then noted the error handler was going off all the time (i.e. to send an email with error details if an error was thrown in the app)