Ignore / Exclude Auto Detection Exceptions from Global Exception Checkpoint in Xcode

Like this question , I would like to be able to ignore Autolayout exceptions while listening to all other global exceptions.

I usually get exceptions like:

2014-01-30 15:15:01.625 AAU iPhone[18233:70b] Unable to simultaneously satisfy constraints.
...
"<NSLayoutConstraint:0xd86e490 V:[UILabel:0xd880c30(21)]>",
"<NSLayoutConstraint:0xd8813a0 V:[UILabel:0xd880c30]-(13)-|   (Names: '|':UITableViewCellContentView:0xd880990 )>",

And I often do not have time to break through my storyboard and find the guilty restriction - is there a way to ignore these exceptions?

So far, I assume that I can use a symbolic breakpoint with a suitable condition. A sample solution for Core Data exceptions is shown here :

(BOOL)(! (BOOL)[[(NSException *)$eax className] hasPrefix:@"_NSCoreData"])

Thanks!

* Like an unrelated dot, Autolayout sucks.

+4

Source: https://habr.com/ru/post/1524528/


All Articles