# Debug

*Note: These features are for advanced users. Be careful.*

This menu contains various debug features to use for testing;

* **flags:** Display and edit saved game flags. The flags are grouped by the records they are kept in. Use the arrows to cycle between flag records. Press a flag to toggle its state. A red flag is "off", and a green flag is "on". The **log** menu displays a list of recent flag events. When a flag changes, its record, id, and new value is inserted at the top off the list. The **undo** option reverts the effect of the most recent flag event and removes it from the log. The **clear** option removes all flag events from the log, but does not affect the state of the given flags. *Note:* The flag log only records changes when the log menu is open. If a flag changes and then changes back while the log is closed, these changes will not be recorded.
* **memory:** Memory editor. Use the horizontal arrows to cycle between memory domains, and the vertical arrows to scroll up and down between addresses. Holding Z while scrolling will scroll faster. You can also enter an address manually in the address field. To edit memory, select the desired data type and press a memory cell to modify it. Pressing an address will create a watch with the selected data type (see [Watches](https://fp-docs.starhaven.dev/overview/watches)).


---

# 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://fp-docs.starhaven.dev/overview/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.
