---
name: "BIS_fnc_debugConsoleExec"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_debugConsoleExec
revid: 348453
updated: 2023-11-08T13:00:17Z
---

# BIS_fnc_debugConsoleExec

*Function · Diagnostic · Arma 3 v1.00*

## Description

Executes Debug Console code.

## Syntax

```sqf
[target, code] call BIS_fnc_debugConsoleExec
```

**Parameters:**

- `target`: [Number](../topics/Number.md) -
  - 0 - local
  - 1 - global
  - 2 - server
- `code`: [Code](../topics/Code.md) - code to be executed

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
[1,{hint "Hello Players!"}] call BIS_fnc_debugConsoleExec;
```

## See also

Arma 3: Debug Console · [BIS_fnc_isDebugConsoleAllowed](../functions/BIS_fnc_isDebugConsoleAllowed.md)

<sub>Source: [BI Community Wiki — BIS fnc debugConsoleExec](https://community.bistudio.com/wiki/BIS_fnc_debugConsoleExec) (revision 348453).</sub>
