All exception break point is stopping for no reason on simulator

前端 未结 7 1011
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 19:03

This is very annoying, every time I\'m trying to debug on the simulator with \"all exception break point\", app stops for no reason on this line:

return UIAp         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 19:31

    As the backtrace shows, the app didn't stop for no reason. It stopped because an exception was thrown, and it looks like a C++ exception.

    Unlike Objective-C, where exceptions should only be thrown as the result of programming errors and therefore are very rare, there is a lot of C++ code around that throws and catches lots of exceptions. In that situation, probably best to only set a breakpoint on Objective-C exceptions, not all exceptions.

提交回复
热议问题