如何跟踪Xcode程序崩溃的位置 [英] How to trace where Xcode program crash

查看:167
本文介绍了如何跟踪Xcode程序崩溃的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调试器中遇到错误。在线程中,我的应用程序在线崩溃:

I'm getting an error in debugger. In Thread my app crash on line:

0x37265f78:  ldr    r3, [r4, #8]

with:

Thread 1: EXC_BAD_ACCESS (code=1, address=0x50000008)

如何找出应用程序实际崩溃的位置?有一个像调用堆栈的东西?

How to find out where app actually crash? There is a something like "call stack"?

推荐答案

你必须设置 Exception Breakpoint
转到Breakpoints导航器,单击底部的+按钮,然后添加Exception Breakpoint。
现在您将知道发生任何异常的确切行(例如崩溃线)。祝你好运!!

You have to set Exception Breakpoint Go to the Breakpoints navigator, click the + button at the bottom, and add an Exception Breakpoint. Now you will know the exact line where any of your exception will occur (e.g. line of crash). best of luck!!

这篇关于如何跟踪Xcode程序崩溃的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆