Tom Hamming
Tom Hamming

Reputation: 10961

How do I tell what exception Xcode's Exception Breakpoint is breaking on?

I've got the Exception Breakpoint added in Xcode 4, and it's breaking on a line where some kind of exception is being thrown. But it's not logging any error information. How do I tell what exception is causing the break if the app doesn't log anything?

Upvotes: 0

Views: 99

Answers (1)

Analog File
Analog File

Reputation: 5316

Exceptions are not logged per-se. When you see an exception being logged it's because the exception is being caught by a generic try-catch handler that logs it. This happens way later than the moment the exception is being thrown and at that point the stack has been unrolled and there's no more information on where it was thrown.

The breakpoint stops execution as soon as the exception is being thrown, before any stack unrolling or anything else happens. You should look at the stack and the stack trace to figure out what exception, where and why is being thrown.

Upvotes: 1

Related Questions