I have seen mentioning of description and debugDescription for debugging purposes, but have yet seen precise explanations of when to use which and under what conditions they may produce different results.
NSObject’s documentation also doesn’t have anything on debugDescription. Question: When to use which, and under what condition, should/would their output be different?
Technical Note TN2124
If you have
debugDescriptionimplemented, printing the object in GDB will display its result. Knowing thatdescriptionis used in UI (I know bindings do that), you may want to use this to print some additional information that user doesn’t need to see.