---
title: insertDebugGroups
framework: metalperformanceshaders
role: symbol
role_heading: Type Property
path: metalperformanceshaders/mpskerneloptions/insertdebuggroups
---

# insertDebugGroups

Enables calling kernel encode methods.

## Declaration

```swift
static var insertDebugGroups: MPSKernelOptions { get }
```

## Discussion

Discussion Using this option causes various kernel encode methods to call  pushDebugGroup(_:) and popDebugGroup() methods. The debug string will be drawn from the kernel’s label property, if available, or the name of the class otherwise.

## See Also

### Constants

- [none](metalperformanceshaders/mpskerneloptions/none.md)
- [skipAPIValidation](metalperformanceshaders/mpskerneloptions/skipapivalidation.md)
- [allowReducedPrecision](metalperformanceshaders/mpskerneloptions/allowreducedprecision.md)
- [disableInternalTiling](metalperformanceshaders/mpskerneloptions/disableinternaltiling.md)
