Xcode catch all uncaught exceptions

In Xcode, I can create a breakpoint to catch all exceptions (exception exception exception). However, this breakpoint also works in a try-catch situation.

I use third-party libraries, so the situation with try-catch is a fact, not an option.

Is there a way to handle uncaught exceptions , and not all exceptions?

+5
source share
1 answer

You can put the top level try/catchin your stream entries.

You may also be interested in NSSetUncaughtExceptionHandler.

( , , ). try/catch , . , nothrow .

Cocoa - , , Cocoa .

0

All Articles