Xcode settings-app memory burst

Source: Internet
Author: User

When you find out what is not written in your project, just start the app memory to soar to 50M or even more than 60M, then please look down, this article is absolutely very useful to you!

1. Enable Zombie Object:

In order to facilitate our debugging procedures, we will generally check the first item. In this case, in our program when the wild pointer is called, when you hit the global breakpoint, the program will be positioned in the specific crash location, for our debugging to bring great convenience;

(Here, please do not ask me how to set a global breakpoint ...??) )

It should be noted that in our packaging program upload, we have to remove this tick, the specific reason to take me to translate the developer documentation, to supplement the authority of the reason! TODO-------

2.Enable Address Sanitizer:

If the symptoms of your program are the same as described above, then you can check if this item was accidentally checked by you. Please uncheck, in run once, see the results after your mood is not all of a sudden easy, originally you can write the memory so small project! Here's a specific reason: Address sanitizer is a great technology that can help us find a lot of problems in C code. It's not perfect, it can't find all the errors, but it can still provide very useful diagnostic information. Here, I strongly recommend that you try to use it in your own code, and you will find the result that surprises you.

Detailed analysis: Immediately after work, I will not wordy! For details, please click

Xcode settings-app memory burst

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.