Maybe somebody knows where is the "Run > Stop on Objective-C exception" menu in Xcode 4? I've used it sometimes in Xcode 3, but it disappeared in the new IDE.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In the left side column of xcode 4:
- tap on the breakpoint tab (the 6th tab over)
- tap on the + button in the bottom left of the window
- tap 'add exception breakpoint'
- tap 'done' on the popup
回答2:
See the image It will help,
good luck, Naveen Shan
回答3:
Someone else told me this, and I'm adding it here so I can favorite this question and have a useful reference to look back on.
Set the objc exception breakpoint action to po $eax and you'll usually get the handy-dandy exception message right there in the debugger window when it breaks.