Xcode 4 exception breakpoint filtering

Breaking on Objective-C exceptions is really useful and easily the best way to debug issues with NSArray and the like. However, exceptions are also a great thing to use while actually programming.

Xcode offers two choices for breaking on Obj-C exceptions:

  • Downloading HTML string into an NSString or Swift String variable in iOS
  • iOS - Build fails with CocoaPods cannot find header files
  • How to show a window without stealing focus on macOS?
  • get pfx file included in a mobilecertificate in iOS
  • XCode Debugger: Why is it only showing me assembler?
  • Using - observeValueForKeyPath:ofObject:change:context: in Swift 3
    • Break whenever an exception is thrown
    • Break whenever an exception is caught

    Breaking on catch seems to be basically useless, since the point of @throw is a lot more important. However, if I’m handling an exception fine, I don’t want my program to stop.

    So, the ideal situation would be: break on all exceptions that are not caught by my code, but show a stack trace for when the exception was thrown.

    Another decent solution would be some sort of debugging whitelist for exceptions that should not be broken on.

    Is there any way to filter exception breakpoints?