Can get an exception place with Xcode or an explanation ... how can I get both?

If I don't set an exception breakpoint in Xcode 4.2, I get very good explanations, for example:

exception -[NSLayoutManager _fillGlyphHoleForCharacterRange:startGlyphIndex:desiredNumberOfCharacters:] *** attempted glyph generation while textStorage is editing. It is not valid to cause the layoutManager to do glyph generation while the textStorage is editing (ie the textStorage has been sent a beginEditing message without a matching endEditing.) 

If I set a breakpoint, I get the location of the problem, which is also good. But then I get no explanation. Nothing is written to the console, even if I continue.

How can I get both? Presumably, since Xcode settled on the exception, the exception object is somewhere in the debugger when I can get to it.

+4
source share
1 answer

Include zombie objects to get an exception:

Go to the menu Product → Scheme → Edit Scheme ... → Diagnostics tab → ON checkbox Enable zombie objects

-one
source

Source: https://habr.com/ru/post/1399253/


All Articles