Xcode 7 调试野指针利器 Address sanitizer

什么是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。

Xcode中如何使用到?

  1. 你需要安装了xcode7
  2. 在xcode7中打开设置。

  3. 发生Crash后,拷贝内存地址

  4. 选中内存查看选项:View Memory

  5. 输入刚才的内存地址

  6. 点开右边的列表,就能看到内存调用记录了。

  7. 根据记录解决问题去吧。

最新文章

  1. MVC丶 (未完待续······)
  2. BAE log服务的配置(nodejs)
  3. The Dragon of Loowater
  4. Unity5.3官方VR教程-系列1
  5. hydra
  6. zookeeper源码学习一——zookeeper启动
  7. 剑指offer--面试题17
  8. 定时关机命令-shutdown
  9. csdn android视频播放器开发
  10. Hi3516EV300专业型HD IP Camera SoC
  11. 软件工程(FZU2015) 增补作业
  12. ServiceStack DateTime数据类型转Json出现的困扰
  13. Vue 就地复用策略注意事项
  14. 查看当前mysql数据库实例中,支持的字符集有哪些,或者是否支持某个特定字符集
  15. 【Flask】在Flask中使用logger
  16. escape(s, t)函数的实现
  17. struts2.5框架使用通配符指定方法,某一个匹配不到
  18. How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
  19. Salty Fish(区间和)
  20. RedHat6.5安装MySQL5.7

热门文章

  1. chrome中怎么避免最小字体只能为12px
  2. 【转】rollup、cub、grouping sets、grouping、grouping_id在报表中的应用
  3. jquery基础知识学习笔记
  4. Your stream was neither an OLE2 stream, nor an OOXML stream.问题的解决
  5. 为maven插件设置参数的三种方法
  6. c++宏使用总结【转】
  7. Django中Form的Textarea字段
  8. SQL Server中字符串函数LEN 和 DATALENGTH辨析
  9. [Java] - Google API调用
  10. 【转载】Keil中的USE MicroLib说明