<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNSceneRenderer/debugOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SCNSceneRenderer(py)debugOptions"
  },
  "title" : "debugOptions"
}
-->

# debugOptions

Options for drawing overlay content in a scene that can aid debugging.

```
var debugOptions: SCNDebugOptions { get set }
```

## Discussion

Use these options to display overlays that show otherwise-invisible scene content—such as node bounding boxes and the extents of physics fields—for use in debugging and profiling your app. For example:

- To visualize how well each object’s physics representation corresponds to its visible geometry,  show the shape of each [`SCNPhysicsBody`](/documentation/SceneKit/SCNPhysicsBody) object in the scene with the [`showPhysicsShapes`](/documentation/SceneKit/SCNDebugOptions/showPhysicsShapes) option.
- To improve rendering performance in a scene with multiple [`SCNLight`](/documentation/SceneKit/SCNLight) objects, show each light’s area of effect with the [`showLightExtents`](/documentation/SceneKit/SCNDebugOptions/showLightExtents) option and ensure that each object in the scene is affected by no more than three lights.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)