Returns a string that describes the contents of the receiver for presentation in the debugger.
- iOS 5.0+
- macOS 10.8+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Objective-C Runtime
A string that describes the contents of the receiver for presentation in the debugger.
The debugger’s print-object command invokes this method to produce a textual description of an object.
NSObject implements this method by calling through to the
description method. Thus, by default, an object’s debug description is the same as its description. However, you can override
debug if you want to decouple these.