IOS Break Point debugging

Source: Internet
Author: User

1. Exception Breakpoint: When the code has a problem causing an exception to be thrown, the debugger pauses the execution of the application and stops at the row that throws the exception.
We just need to click: Add Exception Breakpoint, no other action required

When creating a new project, create an exception breakpoint first

2. Conditional breakpoints: That is, we usually directly to the code interface directly click on the formation of breakpoints, for these breakpoints, we can set some conditions

For example: code, I added a breakpoint, and then we go to the left of the Code navigation panel, find the breakpoint we added, and then "right click" Select Edit Breakpoint, you can set a breakpoint (condition: Fill in the breakpoint condition, only meet this condition, will trigger a breakpoint.) Action: What to do when a breakpoint is triggered).

3. Observation point: Pauses the execution of a program when the value saved in a variable is changed.

First, we need to start the program, then open the Observation window, click on a variable, for example, Ordertime, now we want to monitor its properties when the change, we need to find this property, and then "right click", click on Watch "_odertime" to complete the creation of the observation point, Later, when the value of this property changes, our program automatically pauses here.

IOS Break Point debugging

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.