ios-xcode-debug-Commissioning

Source: Internet
Author: User

In other words, writing a code is a process of writing a bug and then debugging a bug.

1, Xcode The simplest is the NSLog

NSLog (@ "str---%@\n\n", str);//Too many NSLog, Apple may not pass the audit.


2. Breakpoints

When you click in the number area, a blue breakpoint will appear. Coordination Diagram II can be debugged.

Figure one: Figure II:

But an n-cycle, it is impossible to press the button for a moment, which is you need to right-click on the blue Breakpoint, three; Figure four Select the condition,

Control to stop in that cycle.

Might

Figure IV:

About the Blue breakpoint:

Clicking the Blue Breakpoint again will unregister the breakpoint and drop the area to remove the breakpoint.

Clicking on the five red box will show all breakpoints, and clicking on Figure six will comment on all breakpoints.

Figure V: Figure VI:

Also, dragging a breakpoint on the diagram v deletes the breakpoint.





ios-xcode-debug-Commissioning

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.