---
title: "pushDebugGroup(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtliocommandbuffer/pushdebuggroup(_:)"
---

# pushDebugGroup(_:)

Sets the current name for this input/output command encoder by adding it to the top of the debug name stack.

## Declaration

```swift
func pushDebugGroup(_ string: String)
```

## Parameters

- `string`: A new debugging name.

## See Also

### Debugging a command buffer

- [label](metal/mtliocommandbuffer/label.md)
- [popDebugGroup()](metal/mtliocommandbuffer/popdebuggroup().md)
