Instance Property

debugDescription

Returns a string that describes the contents of the receiver for presentation in the debugger.

Declaration

@property(readonly, copy) NSString *debugDescription;

Return Value

A string that describes the contents of the receiver for presentation in the debugger.

Discussion

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 debugDescription if you want to decouple these.

See Also

Describing Objects

description

Returns a string that describes the contents of the receiver.

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software