> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Built-in debugger

> Use the built-in CRMScript debugger to step through code, inspect variables, and manage active debug sessions.

SuperOffice CRM has an integrated graphic debugger. Use it to step through code, set breakpoints, and inspect variables in real time.

## How to run in debug mode

1. In **Settings and maintenance**, select **CRMScripts** in the navigator.

2. Open the **Macros and scripts** tab and select your script.

3. Click the **Debug script** button.

The debugger opens with the code panel on the left and variables, information, and script status on the right. You can:

* Click **Step** to go to the next statement.

* Click a line number to set a breakpoint, and then click **Next breakpoint** to advance the script to that point.

* Click a code line with a statement to run the script until that line

* Run to the end of the script.

* Stop execution of the script.

<Warning>
  Use the debugger with care. Otherwise, the server will soon become swamped with processes running scripts in debug mode.
</Warning>

## Debug sessions tab

The **Debug sessions** tab lists all active debug sessions in the system. Select a session to open it in the debugger.

### Start a debug session

A session starts when you run a script in debug mode from the **Script** screen, or when a script calls `enableDebug(String key)`.

You can also click **Start tracing scripts** to begin [tracing][2] the scripts in the list.

[2]: ./using-trace


## Related topics

- [Tracing scripts](/en/automation/crmscript/debugging/using-trace.md)
