XCode 符号 & .dSYM 文件
尝试了解符号和 dSYM 文件以及它们如何对调试有用。
一直在遵循这个入门指南。 http:// aplus.rs/ios-dev/guide-to-symbolicating-iphone-app-crash-logs-with-xcode-4-2/
那么 dSYM 文件有什么用处呢?我想我对“符号”这个术语感到困惑。它只是生成 .crash 日志文件有用还是实际上可以做更多的事情?
谢谢你,
球座
Trying to get my head around symbolicate and dSYM file and how can they be useful to debugging.
Been following this start guide. http://aplus.rs/ios-dev/guide-to-symbolicating-iphone-app-crash-logs-with-xcode-4-2/
So in what way can a dSYM file be useful? I guess I'm confused with the terminology "symbolicate". Is it just useful to generate a .crash log file or can it actually do more than that?
Thank you,
Tee
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
dSYM 包含一个矮文件,用于映射源代码中的内存地址和方法以及代码行。当应用程序崩溃时,它会写入一个 .crash 日志文件,该文件仅包含崩溃发生时正在执行的代码的内存地址。 “符号化”意味着将这些内存地址转换为类、方法和代码行。因此,它有助于了解应用程序崩溃时正在做什么。
调试器在调试正在运行的应用程序时使用同一文件提供堆栈跟踪和更多信息。
因此,在理解崩溃报告和调试时这两种情况下都是有用且需要的。
A dSYM contains a dwarf file for mapping of memory addresses and methods and lines of code in your source code. When an app crashes it writes a .crash log file which only contains memory addresses of the code being executed at the time a crash occurred. "Symbolicate" means transforming these memory addresses to class, method and line of code that. So it helps understanding what an app was doing when it crashed.
The debugger uses the same file to provide stack traces and more information while debugging a running application.
So it is useful and needed in both cases for understanding a crash report and also while debugging.