Sorry if newbie question, but here it goes:
- using Corona Simulator, late build (2014.2248), sublime and CE plugin, Mac OS
I found that if I have a runtime error like trying to invoke a nil function or resolve a nil var, especially inside of a callback stack, the function just fails and returns without raising an evidence of an error!
I set up an unhandled error listener, i.e.
Runtime:addEventListener(“unhandledError”, myUnhandledErrorListener)
and that made no difference, in fact it is never called. I followed the relevant tutorial and can’t get that event listener to fire .
I find that debugging stupid little code errors is a pain since my callbacks just stop and return when they hit a violation, e.g. print (foo) where foo us undefined.
What am I doing wrong? I want my app to blow up, so I can fix the bug, not to keep going silently!!
very frustrated, would appreciate any help.
THANKS!