Print the stack trace for uncaught events.