# 05 Debug

Visualize OWP queries at runtime.

| Node                   | What it does                                                              |
| ---------------------- | ------------------------------------------------------------------------- |
| **Draw Debug Path**    | Render a Path Result as colored lines. Useful to confirm what A\* picked. |
| **Draw Debug Network** | Render the entire network with debug lines.                               |
| **Debug Trace Route**  | Detailed trace: logs every cost decision A\* makes + draws the result.    |

## Inputs

| Common parameter | Meaning                                       |
| ---------------- | --------------------------------------------- |
| **Color**        | Color of the debug lines.                     |
| **Duration**     | How long the lines stay visible (in seconds). |

## Examples

| Want                                              | Setup                                                                      |
| ------------------------------------------------- | -------------------------------------------------------------------------- |
| Confirm an AI's chosen route looks right          | After Find Path, call **Draw Debug Path** with bright yellow, duration 5s. |
| Visualize the whole network in-game (debug build) | **Draw Debug Network** on a debug-key press.                               |
| Figure out why A\* chose a weird route            | **Debug Trace Route** prints every cost decision to the log.               |

## Tips

* These are **runtime** debug calls. The editor's Pathfind tool gives the same kind of preview interactively.
* Don't call from Tick — call once when you want to see something, with a duration of a few seconds.
* **Debug Trace Route** is verbose. Use it sparingly when actively debugging.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onesteppack.gitbook.io/openworldnavigation-doc/06-blueprint-functions/05-debug.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
