How to trace where Xcode program crash

后端 未结 3 1903
逝去的感伤
逝去的感伤 2021-01-12 17:52

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

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

with:

Thread 1: EXC_BAD         


        
相关标签:
3条回答
  • 2021-01-12 17:59

    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!!

    0 讨论(0)
  • 2021-01-12 17:59

    Run your app under the debugger, then when your app crashes you will have access to the call stack.

    Furthermore, if you display the console window, you will get more textual information (including a call stack) at the moment of the crash.

    If you are using Xcode 4, have a look at the attached picture.enter image description here

    0 讨论(0)
  • 2021-01-12 18:09

    http://www.raywenderlich.com/10209/my-app-crashed-now-what-part-1

    Best tutorial for trace the error.

    0 讨论(0)
提交回复
热议问题