> For the complete documentation index, see [llms.txt](https://cbdebugger.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cbdebugger.ortusbooks.com/collectors/collections.md).

# Collections

Profile the request collections in ColdBox

You can use the `collections` configuration structure to configure the `collections` panel in the debugger. This will dump out the `rc` and the `prc` collections with the final snapshot of their data.  We recommend that you only enable this collector with the appropriate dump top levels as it can completely crash your server trying to dump out all the variables in the collections.

{% hint style="danger" %}
**WARNING** : This collector can crash your server. Make sure you have limits and use it wisely.
{% endhint %}

```cfscript
// Request Collections Reporting
collections : {
	// Enable tracking
	enabled      : false,
	// Expanded panel or not
	expanded     : false,
	// How many rows to dump for object collections
	maxQueryRows : 50,
	// How many levels to output on dumps for objects
	maxDumpTop   : 5
}
```

<table><thead><tr><th width="174">Key</th><th width="126">Type</th><th width="147">Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>enabled</code></td><td>Boolean</td><td>false</td><td>Enable the collector</td></tr><tr><td><code>expanded</code></td><td>Boolean</td><td>false</td><td>Expand the panel by default or not</td></tr><tr><td><code>maxQueryRows</code></td><td>Integer</td><td>50</td><td>Number of rows to show for query dumps</td></tr><tr><td><code>maxDumpTop</code></td><td>Integer</td><td>5</td><td>How many levels to output on object dumps</td></tr></tbody></table>

<figure><img src="https://639975657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkinv4fgugMReTxKWlgH5%2Fuploads%2FzpaoSTjwusFU44nwmfas%2FSCR-20230616-nyjp.png?alt=media&amp;token=1bc924d1-0fd5-4344-ae8b-48c748477bbb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cbdebugger.ortusbooks.com/collectors/collections.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
