> 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/advanced/debug-mode.md).

# Debug Mode

Turn the debugger on/off when needed

The debugger can be enabled via URL commands if needed in public facing applications with a combination of two url keys:

* `debugMode:boolean` - Control to turn the debugger on/off
* `debugPassword:string` - The secure password to use to enable the debugger

Please see the [configuration](https://cbdebugger.ortusbooks.com/essentials/configuration.md#debug-mode) on how to add the default debug mode and debug password.  If your debug password is validated and you turn on debug mode a secured cookie will be stored for you and you will be able to visualize the debugger.  Once you turn it off, then it will remove this cookie for you.

```
https://myapp.com/cbdebugger?debugmode=true&debugpass=mys3cret3key
```

{% hint style="warning" %}
Please note that you can also add a `cbSecurity` rule if needed and add further security, which we recommend.
{% endhint %}


---

# 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/advanced/debug-mode.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.
