Home > iPad, iPhone, iTouch, Objective C > Making NSAssert work

Making NSAssert work

Hi,

NSAssert is handy but it has been annoying me recently as the execution of the debugger doesn’t stop when an assert is hit. Instead we get a message output to the console and the execution is stopped in the update loop at a later point. When something hits an assertion I want the program execution to stop immediately. For some reason beyond me this is disabled in XCode by default. To enable it go to Run->Stop on Objective-C Exceptions

There you go, your exceptions will now work.

Categories: iPad, iPhone, iTouch, Objective C Tags:
  1. No comments yet.
  1. No trackbacks yet.