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

# Run the client in debug mode

> Run your launcher or DLM in debug mode and find the debug log on Windows and macOS.

Running your launcher or download manager (DLM) in debug mode writes a debug log, `host.developer.log`, that you can use to troubleshoot errors.

## Use a keyboard shortcut

> [tab] Windows
>
> Hold **Ctrl** and double-click the launcher, the DLM or a shortcut to them. `host.developer.log` is written to the desktop during the session.

> [tab] macOS
>
> Hold **Cmd** and double-click the launcher or DLM. `host.developer.log` is written to the desktop during the session.

CEF-based launchers also write logs for the CEF libraries: `host.developer.cef.a.gpu-process.log` and `host.developer.cef.b.renderer.log`.

## Use the command line

> [tab] Windows
>
> 1. Open a command prompt in the launcher's folder.
> 2. Run the launcher with `--debug`:
>
>    ```bash theme={null}
>    GameLauncher.exe --debug
>    ```
>
> The log is written to:
>
> | Version | Path |
> | - | - |
> | DIRECT 6.0 to 6.1.1 | `C:\Users\USERNAME\AppData\Local\CompanyName\ProductName` |
> | DIRECT 6.1.2 and newer | `C:\Users\USERNAME\AppData\LocalLow\CompanyName\ProductName` |
>
> `CompanyName` and `ProductName` are set when the launcher is compiled.
>
> To write the log to the desktop instead, use `--debugfile`:
>
> ```bash theme={null}
> GameLauncher.exe --debugfile
> ```

> [tab] macOS
>
> 1. In Terminal, enter the full path to the executable inside the app, for example `/Users/USERNAME/path/to/Launcher.app/Contents/MacOS/Launcher`. You can drag the app onto Terminal to fill in the path.
> 2. Add `--debug` and press **Return**.
>
> The log is written to `/Users/USERNAME/Library/Logs/ProductName/`, where `ProductName` is set when the launcher is compiled.
>
> To write the log to the desktop instead, use `--debugfile`:
>
> ```bash theme={null}
> Contents/MacOS/nameoflauncher --debugfile
> ```

## Related

* [Turn on debug logging by default](https://docs.directgvr.com/troubleshooting/debug-logging-by-default.md)
* [Troubleshoot client errors](https://docs.directgvr.com/troubleshooting/client-errors.md)
* [Core command line](https://docs.directgvr.com/reference/client-skin-system/core-command-line.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.