Xcode 4.2 Doesn’t Show Exception Stack Trace in Console

When using Xcode 4.2 for iOS devel­op­ment there’s an annoy­ing bug where any excep­tions crash to the main.m file instead of high­light­ing the line. Luckily you can set a cus­tom break­point to restore the old and cor­rect behaviour:

  1. Open the Breakpoint nav­ig­ator (CMD + 6)
  2. Click the + but­ton in the bot­tom left
  3. Select Add Exception Breakpoint 
  4. Click Done

Xcode 4.2 Window

Voila!

One Comment

  1. Posted 13/04/2012 at 6:18 am | Permalink

    Thanks for the tip. The excep­tions point­ing always towards main.m was really annoying.

Post a Comment

Your email is never shared.