---
title: debugDescription
framework: objectivec
role: symbol
role_heading: Instance Property
path: objectivec/nsobjectprotocol/debugdescription
---

# debugDescription

A textual representation of the receiver to use with a debugger.

## Declaration

```swift
optional var debugDescription: String { get }
```

## Return Value

Return Value A string that describes the object for debugging purposes.

## Discussion

Discussion The debugger’s po command uses this property to create a textual representation of the object suitable for display in the debugger. The default implemention returns the same value as description. Override either property to provide custom object descriptions.

## See Also

### Describing Objects

- [description](objectivec/nsobjectprotocol/description.md)
