# Debugging

Displaying a list of runtime variables in the console with the “**List variables for Debug**” rule or alternatively the "**List variables on exit"** rule is a proposed practice for debugging in Tomorrow Software. These rules display the variable list only when “**Debug mode**” is enabled in the configuration.

This helps you control the listing (or not) from the configuration before deployment, which is much easier to manage.

Usage of the “**List variables**” rule should be avoided. An easy way to find any leftover “**List variables**” is to use the “**Document**” button in the configuration and to search for it within the produced PDF.


---

# 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.tomorrowx.com/cap/best-practices/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.
