Xcode 7 Debug Field Pointer Tool Address sanitizer

Source: Internet
Author: User

What is address sanitizer?

Addresssanitizer is a fast memory error detector. IT consists of a compiler instrumentation module and a run-time library. The tool can detect the following types of bugs:

Out-of-bounds accesses to heap, stack and globals
Use-after-free
Use-after-return (To some extent)
Double-free, Invalid free
Memory Leaks (experimental)

总结来说:**用来解决内存问题的**。当发生Crash时,打印这个Crash内存的使用记录。通过这个使用记录来调试Bug。
How do I use it in Xcode?
    1. You need to install the Xcode7
    2. Open the settings in Xcode7.
    3. Copy memory address after crash occurs
    4. Check memory view options: View Memories
    5. Enter the memory address just now
    6. Click on the list on the right to see the memory call log.
    7. Solve the problem according to the record.

Xcode 7 Debug Field Pointer Tool Address sanitizer

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.