Thanks to visit codestin.com
Credit goes to docs.coronalabs.com

event.stackTrace

Type Number
Event unhandledError
Revision Release 2026.3728
Keywords unhandledError, stackTrace

Overview

The stack trace at which the last runtime error occurred formatted into a string.

Example

function errorHandler( event )
    print( event.errorMessage, event.stackTrace )
end 

Runtime:addEventListener( "unhandledError", errorHandler )