Xcode 4.2 Doesn’t Show Exception Stack Trace in Console

When using Xcode 4.2 for iOS development there’s an annoying bug where any exceptions crash to the main.m file instead of highlighting the line. Luckily you can set a custom breakpoint to restore the old and correct behaviour:

  1. Open the Breakpoint navigator (CMD + 6)
  2. Click the + button in the bottom left
  3. Select Add Exception Breakpoint 
  4. Click Done

Xcode 4.2 Window

Voila!

2 thoughts on “Xcode 4.2 Doesn’t Show Exception Stack Trace in Console

  1. Thanks for the tip. The exceptions pointing always towards main.m was really annoying.

  2. You sir are a life saver. Accept a bucket load of virtual love please 🙂

Comments are closed.