# Debugging

They allow you to view all of your successes, errors and any information your bot receives.

Bot logs can be triggered by any command or event and can be used to debug an error you may be encountering. Some errors cause fatal errors with commands; others can go unnoticed. Which means your command could work with a slight error, or the command will just not respond.

<figure><img src="/files/WvhpSZmIMhMm6z7izBnU" alt=""><figcaption></figcaption></figure>

## Troubleshooting

Troubleshooting errors can be useful to debug commands, with fixing small errors to make the command efficient or to simply make the command work.


---

# 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://docs.botwiz.dev/docs/misc/debugging.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.
