Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to trace where Xcode program crash

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"?

like image 655
Jakub Avatar asked Jun 04 '12 07:06

Jakub


People also ask

How do I view iOS crash logs?

You can use the Mac Console app to view any crash logs from your Mac or from the Simulator. And on the device under Settings, Privacy, Analytics, Analytics Data you can see all of the logs that are saved to disk and your users can share a log directly from this screen.

How do I find Xcode logs?

Alternatively, you can actually start Xcode from the terminal (by typing /Applications/Xcode-beta. app/Contents/MacOS/Xcode in the terminal window). If you do that, all the logs will be written to the terminal console.


2 Answers

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

like image 110
Saurabh Passolia Avatar answered Nov 10 '22 09:11

Saurabh Passolia


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

Best tutorial for trace the error.

like image 33
dayitv89 Avatar answered Nov 10 '22 10:11

dayitv89