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

# pushDebugGroup(_:)

Pushes a string onto this encoder’s stack of debug groups.

## Declaration

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

## Parameters

- `string`: The debug string to push.
