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.