How to catch exception when debugging in Xcode

While you encounter NSRangeException in NSArray objectAtIndex,

By default you can't see where it happened, only got this exception message.

 

To see where it raise, go to breakpoints view(Cmd+6), presss + to catch all exception.

 

posted @ 2012-01-09 22:21  环宇者  阅读(150)  评论(0编辑  收藏  举报