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

# pushDebugGroup(_:)

Pushes a specific string onto a stack of debug group strings for the command encoder.

## Declaration

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

## Discussion

Discussion For more information, see Naming resources and commands.

## See Also

### Annotating the command buffer with debug information

- [insertDebugSignpost(_:)](metal/mtlcommandencoder/insertdebugsignpost(_:).md)
- [popDebugGroup()](metal/mtlcommandencoder/popdebuggroup().md)
