---
title: debugDescription
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuielement/debugdescription
---

# debugDescription

Provides debugging information about the element.

## Declaration

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

## Discussion

Discussion The data in the string varies based on the time at which it’s captured, but it may include any of the following, as well as additional data: Values for the element’s attributes The entire tree of descendants rooted at the element The element’s query Use this data for debugging only. Depending on any of the data as part of a test is unsupported.

## See Also

### Querying element state

- [waitForExistence(timeout:)](xcuiautomation/xcuielement/waitforexistence(timeout:).md)
- [waitForNonExistence(timeout:)](xcuiautomation/xcuielement/waitfornonexistence(timeout:).md)
- [wait(for:toEqual:timeout:)](xcuiautomation/xcuielement/wait(for:toequal:timeout:).md)
- [exists](xcuiautomation/xcuielement/exists.md)
- [isHittable](xcuiautomation/xcuielement/ishittable.md)
