# print

Prints data to the console. This is useful for debugging.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
print( ... )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/Global.md#print)

> **Note:**
> If the game is running with the `-dev` flag, any output will be added to the game logs.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `...` | any | The arguments to be printed. |

## Terrain

``` { .lua .api-signature }
print( ... )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/Global.md#print)

> **Note:**
> If the game is running with the `-dev` flag, any output will be added to the game logs.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `...` | any | The arguments to be printed. |
