What exception breakpoints developed by iOS

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.