How does iOS_Xcode accurately locate error codes that generate exceptions?

Source: Internet
Author: User

How does iOS_Xcode accurately locate error codes that generate exceptions?

When the application crashes due to an exception,


The cursor may only display an exception in the main function code, as shown in:




In this case, even if you read the log,


It may still be unclear which code generates an exception.


Therefore, you need to manually setException breakpoint,


The debugger Suspends Program Execution when an exception is thrown,


Accurately locate the program to the line of code that encountered an exception.


:






The process of adding an exception breakpoint is as follows:



















How can I locate the error code and solve the exception and stack overflow errors?

I have never heard of this technology for finding error code through the address. You can choose to confirm it by pressing "F10" or "F11" without debugging. What is the error in the pop-up window?

For android exceptions, this exception does not specify the number of lines and cannot locate the specific number of lines of code.

NULL pointer error. You can debug it step by step, so that you can easily find the error.
 

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.