Instance Property

debugDescription

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

Declaration

optional var debugDescription: String { get }

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

var description: String

Returns a string that describes the contents of the receiver.

Required.