Error Output for EventListener Function

A while ago I stuck in a forum post where I said the lack of intelligible output when the simulator crashes slows down development when working with the physics engine.

My other great bugbear - and I do genuinely enjoy working with Corona - is the lack of output when errors occur in EventListeners!

Just now, I wasted 20 minutes of line by line debugging, wondering why a listener wasn’t working, only to discover it was down to a module not being in scope! Ordinarily if I were to make such a simple mistake in normal code, I would get a complaint somewhere down the line about trying to access a nil value.
However, for some reason, EventListeners just seem to silently fail!

I’d would be so grateful if that could be changed! It would save me a lot of time

In fact all I need is a Java-esque stack trace, that would really be a blessing. [import]uid: 11757 topic_id: 7551 reply_id: 307551[/import]

Turns out the lack of output was my mistake!

In the my main class I’d defined a debug variable which effectively deleted the debug library (silently) and somehow turned off all output :stuck_out_tongue:

I feel that’s partly Lua’s fault for having a pretty common name for a library and no qualification as in Java!

But anyway, if you have the same issues I had, check to see whether you’ve got a global debug value or function defined in your code.
[import]uid: 11757 topic_id: 7551 reply_id: 29455[/import]