“Run > Stop on Objective-C exception” in Xcode 4?

2020-01-22 11:50发布

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.

标签: xcode xcode4
3条回答
▲ chillily
2楼-- · 2020-01-22 11:58

In the left side column of xcode 4:

  1. tap on the breakpoint tab (the 6th tab over)
  2. tap on the + button in the bottom left of the window
  3. tap 'add exception breakpoint'
  4. tap 'done' on the popup
查看更多
虎瘦雄心在
3楼-- · 2020-01-22 12:00

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.

查看更多
甜甜的少女心
4楼-- · 2020-01-22 12:03

See the image It will help,

enter image description here

good luck, Naveen Shan

查看更多
登录 后发表回答