How to trace where Xcode program crash

后端 未结 3 1913
逝去的感伤
逝去的感伤 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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

提交回复
热议问题