From the abnormal error of Android development to the abnormal flash of iOS, experienced a different process. For iOS exception error is always very vacant, always tell you that there is an exception, and then jump to the main.m file, but I did not tell her to appear there, is really a big appetite. Until I could no longer tolerate the situation where I could not locate by looking at the anomaly, I found exception breakpoint. The following documents are from the official:
my understanding is as follows:
To add an exception breakpoint to your project's breakpoint navigation page, here are a few steps:
1. In the lower-left corner of the breakpoint navigation page, click the + button.
2. Select Add Exception breakpoint.
3. In the pop-up Exception menu (PS: I didn't pop it up when I added it), choose the type of breakpoint you want to perform, in the following ways:
3.1 All. All exception types are stopped at the exception
3.2 objective-c. Abnormal stop at exception at OBJECTIVE-C code only
3.3 C + +. Stops at exception only when the C + + code is abnormal
4. Select the time you want to stop at that stage of exception handling (PS: Break selection, on throw: toss; on Crath: Capture)
5. Click Done
After the following operation, as long as there is an exception during the application run, the first time is to navigate to the location of the exception.