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

XcodeXcode4

Xcode Problem Overview


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 Solutions


Solution 1 - Xcode

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

Solution 2 - Xcode

See the image It will help,

enter image description here

good luck, Naveen Shan

Solution 3 - Xcode

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionddnvView Question on Stackoverflow
Solution 1 - XcodeTylerc230View Answer on Stackoverflow
Solution 2 - XcodeNaveen ShanView Answer on Stackoverflow
Solution 3 - XcodexgalaxyView Answer on Stackoverflow