I haven’t run into this with Corona before, and trust me, I’m no stranger to Corona errors
Basically I get an error, but no pointer as to where the error is! So the question is, what’s the best tactic to find it?
Error:
Aug 08 21:28:29.792: ERROR: Runtime error
?:0: attempt to compare number with nil
stack traceback:
?: in function '?'
?: in function '?'
?: in function <?:182>
2017-08-08 21:30:41.175855-0400 Corona Simulator[36784:6623087] Corona Simulator: Goodbye
I know I have an issue as I cascade back through scenes (by design), but not sure where to look really! (This doesn’t happen when you first run it, it occurs when I return to previous scenes)
Debug I’ll try next, but I will confess it doesn’t always handle such long stepping well, it tens to crash the simulator eventually!
I’ve added many ‘print “you are here”’ statements to try and narrow it down (and they all print still)
Anyhow, I wondered if there was something I could do to try and locate it and thought I’d ask the experts