# Troubleshooting

Throughout the Swallow platform, there are ways to sense-check your work and test and validate as you go.&#x20;

Wherever you see a button saying 'View Logs', 'Download Model' or 'Download JSON', you'll be able to view or download JSON populated with test data, so that you can see your work in action, and isolate problems if necessary.&#x20;

You'll find these buttons throughout the 'Build', 'Test' and 'Data' tabs, as well as on the 'Try Version' and 'Try Live' pages, after you've run a quote using your model.

## Viewing logs while building

You can always dig a little deeper into any results by viewing the logs within your model.

On the 'Build' tab, if you click the 'Show Logs' button, all of your steps will expand to show the logs, so you can see how each result was calculated, split in detail. You can also download all logs as a JSON file.

<figure><img src="/files/0TsR5NwIkBLDp6SXgIfd" alt="" width="563"><figcaption><p>Expanded logs for a 'Factors' step</p></figcaption></figure>

At any stage in building your model, it's really simple to test your expression before you save it.

Simply click the 'Test' button in the bottom right of any 'Expression' form field, and you'll see either a green tick or a red cross next to a label reading 'View'.&#x20;

<figure><img src="/files/Tc0T5Oqup7qMC9DizLMN" alt="" width="375"><figcaption><p>Click the 'Test' button to see if your expression is working</p></figcaption></figure>

This will tell you whether your syntax is written and parsing correctly or not.

<figure><img src="/files/oHA0Z5MMhYNNZyTbzXme" alt="" width="86"><figcaption><p>Expression parsing successfully</p></figcaption></figure>

<figure><img src="/files/QEyaA98o4UONJlRaMePu" alt="" width="93"><figcaption><p>Expression parsing unsuccessfully</p></figcaption></figure>

Clicking the 'View' label will open up a debug menu that will show the JSON logs, allowing you to see how your expression is working with default data, to evaluate if it's doing what you expect it to.

<figure><img src="/files/yU7URMdBLCtPil2wEMit" alt="" width="563"><figcaption><p>Expanded JSON logs</p></figcaption></figure>

Test data will automatically be generated from the 'Default' inputs you've set up in your INPUTS step. When you're editing a step, you can always see the test data or manually update it at any time in the bottom left of your sidebar.&#x20;

<figure><img src="/files/nU14Au1bxss9g6P48UdE" alt="" width="299"><figcaption><p>Test data in the bottom left corner of the sidebar</p></figcaption></figure>


---

# 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://swallow-1.gitbook.io/swallow/data/troubleshooting.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.
