<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Simulation](./server.simulation.md) &gt; [enableDebugRendering](./server.simulation.enabledebugrendering.md)

## Simulation.enableDebugRendering() method

Enables or disables debug rendering for the simulation.

**Signature:**

```typescript
enableDebugRendering(enabled: boolean, filterFlags?: RAPIER.QueryFilterFlags): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

enabled


</td><td>

boolean


</td><td>

Whether to enable debug rendering.


</td></tr>
<tr><td>

filterFlags


</td><td>

RAPIER.QueryFilterFlags


</td><td>

_(Optional)_ Optional query filter flags for debug rendering.

\*\*Side effects:\*\* Emits `SimulationEvent.DEBUG_RENDER` each step while enabled.

\*\*Category:\*\* Physics


</td></tr>
</tbody></table>
**Returns:**

void

## Remarks

When enabled, all colliders and rigid body outlines are rendered. Avoid enabling in production; it can cause noticeable lag.

