在Xcode崩溃报告中找不到崩溃发生的代码 [英] Unable to find code where crash happens in xcode crash report
问题描述
我用x代码收到了一些崩溃报告(由用户报告),但无法找到它的用途。我在项目中打开了它,但没有显示崩溃发生的代码行(显然我尝试单击堆栈跟踪的每一行)。
如果要在已发布的版本中触发崩溃,则应集成崩溃项目中的报告人, Crashlytics
就是其中之一。
之后,您将提示输入:
它将自动启用异常断点
。
I got several crash reports in x-code(reported by users) but unable to find out what is it for. I opened it in project but it doesn't show me code line where crash occurred (obviously i tried clicking on every line of the stack trace).
If you want to trigger Crashes in your released builds so you should integrate crash reporter in your project and Crashlytics
is one of them.
Integrate it and release your build to client or tester. Whenever it will crash you will be notify by email with the Name of controller with line number.
If you are Debugging:
You must use Exception Breakpoint
for this:
In your Project Navigator
Select Breakpoint
and Select + Option
like below:
Ater that you will prompt with :
It will automatically Enable Exception Breakpoint
.
这篇关于在Xcode崩溃报告中找不到崩溃发生的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!