When I handle unhandled errors in my game, in the simulator all works well.
But in the device, I get neither the function names nor the line numbers
This is my errorListener function
local function errorListener( event ) for i,v in pairs(event) do print(i,v) end return true end Runtime:addEventListener("unhandledError", errorListener)
In the device I just get the following.
errorMessage: ?:0: attempt to index upvalue '?' (a nil value) stackTrace: stack traceback: [C]: ? ?: in function '?' ?: in function '?' ?: in function \<?:216\> ?: in function \<?:218\> name: unhandledError
which is pretty useless for debugging.
Any way I can get the actual function names?