---
title: isDebuggingEnabled
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlclayer/isdebuggingenabled
---

# isDebuggingEnabled

A Boolean that indicates whether you choose to debug the layer when executing a graph that includes it.

## Declaration

```swift
var isDebuggingEnabled: Bool { get set }
```

## Discussion

Discussion If true, the layer makes the result tensor and gradient tensors available for reading. The default value is false. important: If you set isDebuggingEnabled to true, make sure to also include debugLayers in the options parameter when compiling the graph. Otherwise the layer ignores this property.

## See Also

### Inspecting a Layer

- [layerID](mlcompute/mlclayer/layerid.md)
- [label](mlcompute/mlclayer/label.md)
- [deviceType](mlcompute/mlclayer/devicetype.md)
- [supportsDataType(_:on:)](mlcompute/mlclayer/supportsdatatype(_:on:).md)
