Currently testing out an app and it gets error from a scenario like this:
item.tween = transition.to(item,{time=500,x=500,onComplete=function()
item.tween = nil
end})
And sometimes “item” gets removed and nilled out before this transition finishes. And we get an error. Classic problem. Obviously I need a better method of preventing this from happening. But that’s another story. I am just trying to figure out how to use the Runtime Error Handler.
So I have the Runtime Error Handler set up as mentioned in the recent blog post.
So first in the Simulator. When this error happens, first I see the Runtime Error in the Terminal like usual and then following that I see the Runtime Error Handling Listener printing out its own print statements. Excellent, seems to work on the Simulator.
So I then test it out on the device (an iPad3) and monitor it in the xCode Organizer Console.
The first Runtime Error shows up in the console, but never the Runtime Error Handler Listener print statements. I suppose it never executes because the app stopped at the Runtime Error? No idea.
I get no popups, nothing. And I tried both return true and false in the handler function. And I am using daily build 1056.
Am I missing something? Should The Runtime Error Handler be working on the device? Should it be printing stuff to the xCode console?