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  <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  <Warning>: Runtime error stack traceback: [C]: ? ?: in function <?:401> ?: in function <?:218>