> For the complete documentation index, see [llms.txt](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/scripts-paid/service-fun/english/configuration/debug.md).

# Debug

#### Enabling Debug Mode

The **Config.Debug** parameter allows you to enable or disable the display of debugging information in the server and client consoles

This mode is useful for monitoring the script's operation, understanding internal actions, and quickly identifying errors or unexpected behavior

**Example configuration**

```lua
Config.Debug = false
```

***

### Steps to use Debug mode

#### 1. Locate the parameter

Open your file `config.lua` and locate the next line :

```lua
Config.Debug = false
```

***

#### 2. Understanding the use

* `false` → Debug mode disabled\
  Trace messages and technical information are not displayed
* This is recommended in production or on a public server
* `true` → Debug mode **enabled**\
  Messages are displayed in the server and client consoles (e.g., service access, job, framework detected, counters, errors, etc.). This allows you to follow the script's progress step by step

***

#### 3. Examples of use

**Disable logging for a stable server**

```lua
Config.Debug = false
```

**Enable logging for testing or troubleshooting**

```lua
Config.Debug = true
```

***

#### 4. Modify according to your needs

To display useful information during development or to solve a problem :

```lua
Config.Debug = true
```

To hide the logs once the script is stable :

```lua
Config.Debug = false
```

***

#### 5. Save and restart

1. Save the changes in `config.lua`.
2. Restart the resource or your FiveM server :

```
restart service_fun
```

***

#### 6. Test in-game

Once the server has restarted, look at the console :

* With `Debug = true`, you will see detailed messages about the script's actions
* With `Debug = false`, only normal operation will be active, without technical logs.
