> ## 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.

# Core command line

> Command-line arguments supported by every DirectGVR client.

These command-line arguments work with every DirectGVR client.

## Input format

The format for command line arguments and flags is below.

```bash theme={null}
--arg1=val1 --arg2=val2 --flag1
```

> [!NOTE]
>
> Dashes and underscores inside a name are optional, so `--debug-file`, `--debugfile` and `--debug_file` are the same argument.

## Debug log directory

* Windows: `%LOCALAPPDATA%Low\{Company}\{ProductName}\` (same as `%USERPROFILE%\AppData\LocalLow\{Company}\{ProductName}\`)
* macOS: `~/Library/Logs/{ProductName}/`
* Linux: `~/.local/share/{Company}/{ProductName}/`

> [!NOTE]
>
> If it is not possible to retrieve the product name or company name from the executable they are excluded from the path. If neither product name nor company name is retrievable then the process's file title is used instead.

## Debug log keyboard shortcut

Holding down the following key while the process starts will produce a verbose debug log on the desktop.

* Windows & Linux: CTRL
* macOS: CMD

## Supported flags

The following is a list of command line that most core applications support.

| **Flag** | **Description** |
| - | - |
| --append | Opens the debug log in append mode. |
| --cmdline | Suppresses abort and assert message boxes. |
| --commit | Commit each log line to disk immediately. |
| --credits | Dumps credits and licenses of the 3rd party projects to a console window (if available), to a log file or window (if enabled), to a file in the log directory, and opens this file with a system registered text viewer or editor. |
| --debug | Writes a debug log file. |
| --debugdir=\{path} | Specifies the directory to write debug logs to (not working if CEF is sandboxed). |
| --debugfile | Writes a debug log file to the user's desktop (not working if CEF is sandboxed). |
| --debugthread | Writes the thread ID to the log after the timestamp. |
| --har | Creates a HTTP request log (.HAR). |
| --http1 | Use only HTTP/1.1 in web requests. |
| --maxdays=\{number} | Maximum number of days to keep logs with --perday. |
| --memoryreport | Writes every memory alloc or free to the debug log. |
| --memorytest | Tests each memory allocation for buffer overwrite or underrun. |
| --memorytracking | Tracks memory allocations. |
| --perday | Creates a debug log for each day. |
| --perprocess | Creates a debug log for each process. |
| --proxy=\{proxies} | Specifies a comma or semicolon separated list of proxy servers. |
| --proxy-wpad=\{url} | Sets the proxy WPAD script URL. |
| --window | Shows a command prompt for debugging. |

## Class debug logging

To enable class debugging use the -verbose flag.

Format

*--verbose=\[Level1]\[!]String1,\[Level2]\[!]String2,\[LevelN]\[!]StringN...*

Level is the verbosity level. The higher the level, the more verbose. Exclamation point has the effect of not showing the specified class's verbosity statements. String is the name of the class and can be a wildcard.

Examples

To show verbose level 1 statements from all classes:

*--verbose=*\*

To show verbose statements from all classes between verbose level 1-25 (note that this can be used to determine the name of the class you want to focus on with some of the commands below):

*--verbose=25*\*

To show verbose level 1 statements from all classes, and verbose level 1-10 statements of the WebGet classes:

*--verbose=*,10WebGet\*\*

To show verbose level 1 statements from all classes, and to hide all SliceChecker class statements:

*--verbose=*,!SliceChecker\*

To show verbose level 1 statements from all classes, and to hide all SliceChecker class statements, and to show verbose level 1-2 statements from Peer class:

*--verbose=*,!SliceChecker,2Peer\*

## Class debug levels

Below are a list of documented classes that print information at certain verbosity levels.

| **Class** | **Level** | **Additional Information** |
| - | - | - |
| Analytics | 1 | JSON data dumps |
| BufferedStream | 11 | Buffered stream I/O operations |
| Config | 2 | Workflow app config changes |
| Interop | 6 | Instance referencing |
| JSON | 9 | XML parsing |
| NotificationCenter | 1 | Observer info |
| WebGet | 1 | Regex substitutions |
| WebBrowser | 1 | Navigation errors, UI interactions |
| 30 | CEF client requested URLs | |
| WebRequest (alias WebGetPool) | 7 | HTTP response headers |
| 8 | Like above and response headers | |
| 9 | Like above and the fist chunk of the response content if the request failed | |
| 10 | Like above and the fist chunk of the response content if the request succeeded | |
| 11 | Like above but the entire response content | |
| WebServer | 8 | HTTP connection headers |
| Workflow | 2 | Workflow details |
| WorkflowManager | 2 | Task dumps and callback calls |
| XML | 10 | XML parsing |

If app starts while Ctrl button is pressed, the default verbose level is set to 8 and applied to all classes except `WebRequest`.


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