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

# Event tracing (wdtrace.exe)

> Event tracing (wdtrace.exe)

Use this tool to start, stop, and collect event trace logs on the console.

| Command                 | Description                                           |
| ----------------------- | ----------------------------------------------------- |
| [start](#wdtrace_start) | Starts an event-tracing session on the remote console |
| [stop]()                | Stops a trace                                         |
| [log](#wdtrace_log)     | Collects a log                                        |

<a id="wdtrace_start" />

## wdtrace start

Starts an event-tracing session on the remote console.

`wdTrace start <tracetype> `

| Option      | Description                                                                                                                         |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `tracetype` | The type of tracing session. Allowed values: <br />advancedmp - Advanced multiplayer capture.<br />netcap - Network packet capture. |

<a id="wdtrace_stop" />

## wdtrace stop

Stops an event-tracing session on the remote console and writes the trace files to etlfile/directory.

`wdTrace stop [etlfile/directory]`

| Option              | Description                                        |
| ------------------- | -------------------------------------------------- |
| `etlfile/directory` | The file or directory to write the trace files to. |

<a id="wdtrace_log" />

## wdtrace log

Collects a log during an event-tracing session on the remote console.

`wdTrace log <logtype>`

| Option    | Description                                                             |
| --------- | ----------------------------------------------------------------------- |
| `logtype` | The log type to collect. Allowed value: <br />netstate - Network state. |

## See also

[Console Command-line tools](/tools/tools-console/console_commandlinetools/consolecommandlinetools)

[XTF transport errors](/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [Console-based command-line tools](/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)
- [Console-based command-line tools for XBOX](/tools/tools-console/console_commandlinetools/index.md)
- [Calling wd tools from your title](/tools/tools-console/console_commandlinetools/titlecodecallingwdtools.md)
- [Debug Tracing](/services/playfab/sdks/c/tracing.md)
- [XBOX services Trace Analyzer (XblTraceAnalyzer.exe)](/tools/tools-services/live-trace-analyzer.md)
