Ethan Allen
Ethan Allen

Reputation: 14835

Is there any way to get a full iOS crash log when debugging?

Is there any way to get a full iOS crash log when debugging?

For example... I have my phone plugged in, code open, run the app in Debug mode, and the app crashes on a specific line of code. Is there any way to get the crash log from that?

Or do I actually need to be disconnected from the debugger and computer, crash the app, and then get the crash log via the Organizer? I'd prefer to not do it this away.

Upvotes: 0

Views: 364

Answers (2)

ipmcc
ipmcc

Reputation: 29886

I'm not aware of any way to get the equivalent of a crash log when the debugger is attached. I would say the general thought is that if the debugger is attached, you should be able to extract any information you need using the debugger itself. Some might argue that it's a feature that crash logs aren't generated when you're debugging.

Regardless, you should be able to get all of that info in the debugger. For all thread backtraces you can do:

thread apply all bt

And for library load addresses you can do:

info sharedlibrary

That seems to be the bulk of the useful information in a crash log.

Upvotes: 3

Lolloz89
Lolloz89

Reputation: 2809

Xcode has a built-in consolle. Show it by clicking this button http://imageshack.us/photo/my-images/46/schermata012455942alle2.png/ in the top right angle of the window.

Upvotes: 0

Related Questions