---
name: "Arma 3: Debug Console"
type: topic
aliases: ["Arma 3 Debug Console", "Mission Editor: Debug Console (Arma 3)"]
source: https://community.bistudio.com/wiki/Arma_3:_Debug_Console
revid: 377942
updated: 2026-01-11T22:56:41Z
---

# Arma 3: Debug Console

Arma 3 v0.54

The **Debug Console** is an editing tool that provides scenario designers with the ability to observe variables and to execute code on the fly.

### Access

While playing a mission from the editor, the console is immediately available in pause menu.
In the old [2D Editor](../topics/2D_Editor.md) map screen, you can open it by clicking the "Debug Console" button or with <kbd>Ctrl</kbd> + <kbd>D</kbd>.
In Eden editor it is available under `Tools > Debug Console`.

In multiplayer the debug console is available by default only when MP preview is started from Eden Editor, and is only available to the host who started it.
In all other cases debug console needs to be explicitly enabled with either editor attribute or *enableDebugConsole* param (see below).
It is worth noting that when debug console is configured for admin access, it is only available for [logged in](../topics/Server_Config_File.md#logged-in-admin) admin, [voted in](../topics/Server_Config_File.md#voted-in-admin) admin is treated just like any other user in this respect.

### Configuration

The console is automatically available in missions running from editor.
If mission designer wishes to enable it elsewhere, he can achieve it in one of the three ways:

- Using mission config param. You can add *"\a3\functions_f\Params\paramDebugConsole.hpp"* [mission parameter](../topics/Mission_Parameters.md), where server host / admin can choose whether or not he'll allow debug console.
- Using following [Description.ext](../topics/Description.ext.md) param, for example:

  ```cpp
  enableDebugConsole = 1;
  ```

  Possible values:
  - 0 - Default behavior, available only in editor
  - 1 - Available in SP and for hosts / logged in admins in MP
  - 2 - Available for everyone
- Using Eden attribute `Debug Console`, available in `Attributes > General > States > Debug Console`
- Using global/mod config param, for example:

  ```cpp
  enableDebugConsole = 2;
  ```

#### Whitelisting Multiple Users (Arma 3 v1.72)

It is possible to let more than one person access debug console in Multiplayer.
This is done by defining `enableDebugConsole` param as [Array](../topics/Array.md) and adding UIDs of whitelisted users to this array, for example:

```cpp
enableDebugConsole[] = { "81273982178973213", "3749832749732749", "7492374983274234" };
```

All users with UIDs matching the added UIDs will be able to access debug console in Multiplayer.
Additionally, server host will also be able to use debug console, as well as any logged in admin on dedicated server.

#### Mod support

Since Arma 3 v1.72 it is possible to configure debug console availability with a mod param `enableDebugConsole`.
This param is checked if no debug console option is set in the mission.
If a server admin would like to make debug console available for a group of trusted people, he can create a custom mod, for example with `enableDebugConsole = 2;` then sign it and distribute it amongst trusted people.
This way anyone who has this custom mod signed with correct signature, will be able to connect to the server and use debug console.
Array of UIDs is also supported here.

To whitelist (multiple) users with a mod, if *enableDebugConsole* has already been defined, use the delete keyword:

```cpp
delete enableDebugConsole;
enableDebugConsole[] = { "81273982178973213" };
```

#### Order of Precedence

1. [Mission param](../topics/Mission_Parameters.md) is checked. If it is not defined then...
1. [description.ext](../topics/Description.ext.md) param `enableDebugConsole` is checked. If is not defined then...
1. Eden attribute option is checked. If not defined then...
1. Global/mod param `enableDebugConsole` is checked.

#### BattlEye Filters

Debug Console uses [Remote Execution](../topics/Remote_Execution.md). If you wish to exclude Debug Console execution from BE Filters, add this to your `remoteexec.txt`

```
!="BIS_fnc_debugConsoleExec \[[0-2],\{.*\}\]"
```

### Features

> [!NOTE]
> You can clear large amounts of text from the expression field or a watch field by selecting the field and pressing <kbd>Ctrl</kbd> + <kbd>A</kbd> and then <kbd>Del</kbd>.

#### Expression field

- The expression is saved when the debug console is closed and restored again upon return.
- Arma 3 v1.74 Comments with `//` are supported (use <kbd>⇧ Shift</kbd> + <kbd>Return ↵</kbd> to start a new line).
- The expression can be executed in the [unscheduled environment](../topics/Scheduler.md#unscheduled-environment) using the following buttons:
  - Local - execute on player's computer using [remoteExec](../commands/remoteExec.md) to [call](../commands/call.md) the given code.
  - Global - execute on all computers using [remoteExec](../commands/remoteExec.md) to [call](../commands/call.md) the given code. Only enabled in MP.
  - Server - execute only on the server using [remoteExec](../commands/remoteExec.md) to [call](../commands/call.md) the given code. Only enabled in MP.
  - Performance Test - See: [diag_codePerformance](../commands/diag_codePerformance.md)

#### 4x Watch field

- The expression is saved when the debug console is closed and restored again upon return.
- When the code is taking too long to evaluate (>0.003s), the background turns orange and the value is not saved.
- Watch field execution is paused when the user edits the watch expression and resumed on change of focus or when pressing <kbd>Return ↵</kbd>.

#### Execution result field (Arma 3 v1.74)

- The execution result field shows result of local execution of the expression code.
- In MP the execution result field shows remote result for server execution.

#### Expression History

The debug console will keep track of the last ten expressions which were executed.
One can use <kbd>↟ PgUp</kbd> and <kbd>↡ PgDown</kbd> to cycle through them.

#### Buttons

All of the following buttons close the pause menu and open another window.

- [Spectator Camera](../topics/End_Game_Spectator_Mode.md)
- [Arma 3: Splendid Camera](../topics/Splendid_Camera.md)
- [Functions Viewer](../topics/Functions_Viewer.md)
- [Config Viewer](../topics/Splendid_Config_Viewer.md)
- [Animation Viewer](../topics/Splendid_Animation_Viewer.md)
- User Interface Editor

#### Profile Saving

The debug console automatically saves each field as you go, even after game restart.
These can also be access using [profileNamespace](../commands/profileNamespace.md) [getVariable](../commands/getVariable.md) with the following code:

- **Expression Field**

  ```sqf
  profileNamespace getVariable "rscdebugconsole_expression";
  ```
- **4x Watch Field**

  ```sqf
  profileNamespace getVariable "rscdebugconsole_watch1";
  profileNamespace getVariable "rscdebugconsole_watch2";
  profileNamespace getVariable "rscdebugconsole_watch3";
  profileNamespace getVariable "rscdebugconsole_watch4";
  ```

Using the same variables you can also clear or change the fields.

### Utilities

In order to access [Arma 3: Utilities](../topics/Utilities.md) from debug console, type `utils` in the debug console and press local exec.
To go directly to the utility of your choice use `utils n`, where `n` is the number of the utility in the list.
For example `utils 2` will take you to config browser.

### See Also

- [Debugging Techniques](../topics/Debugging_Techniques.md)

<sub>Source: [BI Community Wiki — Arma 3: Debug Console](https://community.bistudio.com/wiki/Arma_3:_Debug_Console) (revision 377942).</sub>
