How To Loop Through All Active Thread in iPad app

前端 未结 2 673
傲寒
傲寒 2020-12-13 01:03

In the iPad app that I\'m creating, I\'m trying to handle the uncaught Exceptions by outputting the callStackSymbols of the exception. This can be done with [NSExcepti

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 01:47

    This seems fraught with peril, doubly so if you need to ask here for help. May I suggest PLCrashReporter? Its listed features are:

    • Implemented as a in-process fully async-safe signal handler.
    • Does not interfere with debugging in gdb
    • Handles both uncaught Objective-C exceptions and fatal signals (SIGSEGV, SIGBUS, etc)
    • Backtraces for all active threads are provided. (emphasis my own)
    • Provides full register state for the crashed thread.

    Better yet, have a look at QuincyKit, a very handy wrapper around PLCrashReporter.

提交回复
热议问题