How to track where the Xcode program crashes

I get an error in the debugger. In the stream, my application shuts down online:

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

with:

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

How to find out where the application really crashes? Is there something like a call stack?

+5
source share
3 answers

You need to install 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 in which any of your exceptions will occur (for example, a failure line). good luck!

+15
source
+3
source

, , , .

In addition, if you display the console window, you will receive more textual information (including the call stack) at the time of the failure.

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

+1
source

All Articles