> For the complete documentation index, see [llms.txt](https://docs.shadersource.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shadersource.io/assets-and-plugins/ocean-tool-2/how-to-use/ocean-tool-2-editor-mode/debug-tab.md). Agents can also search and read this documentation through its [MCP server](https://docs.shadersource.io/~gitbook/mcp).

# Debug Tab

The Debug tab - views and tools for seeing what the ocean and the simulated shore are doing.

The **Debug** tab is for looking at what the ocean is doing. Nothing on it changes what ships.

It has two pages.

## Debug > Ocean

Views of the water itself.

![Debug > Ocean](https://2855220899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk51ACJUA5E3mZvLb9h%2Fuploads%2Fj2q4l9GAk904tNnVwOiK%2Fdt_ocean.png?alt=media)

| Button             | What it does                                                                                                      |
| ------------------ | ----------------------------------------------------------------------------------------------------------------- |
| **Swell Guides**   | Draws arrows along the wind's heading and lines across it where the crests run. Press again to turn them off.     |
| **Show Triangles** | Draws the edges of the surface's triangles, including where the mesh changes level. Press again to turn them off. |
| **Rebuild**        | Rebuilds the wave spectrum, the cascades, the mesh and the material bindings. A safe "turn it off and on again".  |

Under the buttons are the ocean's debug settings: **Debug View** (a diagnostic view of the water in place of its shading), **Show Mesh Topology** and its line width, **Debug Distance** (the distance the depth views show as white), and **Wave Time Override**, which freezes the waves at a time in seconds for comparing two settings on the same wave. -1 returns to the world's clock.

## Debug > Simulation

The simulated shore's control room. It is live only while the **Simulated** shore model is chosen.

![Debug > Simulation](https://2855220899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk51ACJUA5E3mZvLb9h%2Fuploads%2FKMp43553KE0TIx8ijcxj%2Fdt_simulation.png?alt=media)

| Control                | What it does                                                                                                                                                                                            |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The status line        | What is running: the simulated area, its cell sizes, and how far out the ocean drives it.                                                                                                               |
| **Pause** / **Resume** | Freezes the simulation and lets it go again.                                                                                                                                                            |
| **Restart**            | Starts again from still water.                                                                                                                                                                          |
| **Show area**          | Draws the simulated area in the viewport.                                                                                                                                                               |
| **View on the water**  | Draws one of the simulation's values on the surface itself: **Depth**, **Speed**, **Foam**, **Cells**, **Particles**, **Collision**, **Flow normals** or **Turbidity**. **Off** goes back to the water. |
| **Debug pictures**     | Shows the simulation's own maps as pictures: Depth, Flow, Surface, Particles, Foam and drive, Front age, Collision and **Profile** - a cross-section of the water along the camera's heading.           |

Click a picture to open it in its own window: the mouse wheel zooms, dragging pans, and a double-click fits it to the window.

{% hint style="info" %}
**Checking rocks with the Collision view.** It lays a grid over whatever the water runs on, the land included. The ground and the rocks held by the bake are grey; other rocks and props are orange. A rock that stands bare out of the grid is not in the simulation: add it to the Shoreline Volume's **Include actors** and bake again, or give its mesh collision.
{% endhint %}

[Simulated Shoreline](https://docs.shadersource.io/assets-and-plugins/ocean-tool-2/tutorials/simulated-shoreline.md) uses this page step by step.
