---
title: "xpc_copy_description(_:)"
framework: xpc
role: symbol
role_heading: Function
path: "xpc/xpc_copy_description(_:)"
---

# xpc_copy_description(_:)

Copies a debug string that describes the object.

## Declaration

```swift
func xpc_copy_description(_ object: xpc_object_t) -> UnsafeMutablePointer<CChar>
```

## Parameters

- `object`: The object which is to be examined.

## Return Value

Return Value A string describing object which contains information useful for debugging. This string should be disposed of with free(3) when done.

## See Also

### Copying

- [xpc_copy(_:)](xpc/xpc_copy(_:).md)
