---
title: debugDescription
framework: swift
role: symbol
role_heading: Instance Property
path: swift/optional/debugdescription
---

# debugDescription

A textual representation of this instance, suitable for debugging.

## Declaration

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

## See Also

### Inspecting an Optional

- [hash(into:)](swift/optional/hash(into:).md)
- [unsafelyUnwrapped](swift/optional/unsafelyunwrapped.md)
- [customMirror](swift/optional/custommirror.md)
