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

# 事件跟踪 (wdtrace.exe)

> 事件跟踪 (wdtrace.exe)

使用此工具在主机上启动、停止和收集事件跟踪日志。

| 命令 | 说明 |
| - | - |
| [start](#wdtrace_start) | 在远程主机上启动事件跟踪会话 |
| [stop]() | 停止跟踪 |
| [log](#wdtrace_log) | 收集日志 |

## wdtrace start

在远程主机上启动事件跟踪会话。

`wdTrace start <tracetype> `

| 选项 | 说明 |
| - | - |
| `tracetype` | 跟踪会话的类型。允许的值: advancedmp - 高级多人游戏捕获。 netcap - 网络数据包捕获。 |

## wdtrace stop

停止远程主机上的事件跟踪会话,并将跟踪文件写入 etlfile/directory。

`wdTrace stop [etlfile/directory]`

| 选项 | 说明 |
| - | - |
| `etlfile/directory` | 用于写入跟踪文件的文件或目录。 |

## wdtrace log

在远程主机上事件跟踪会话期间收集日志。

`wdTrace log <logtype>`

| 选项 | 说明 |
| - | - |
| `logtype` | 要收集的日志类型。允许的值: netstate - 网络状态。 |

## 另请参阅

[基于主机的命令行工具](https://docs.xbox.com/zh-CN/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)

[XTF 传输错误](https://docs.xbox.com/zh-CN/tools/tools-console/commandlinetools/xtf-transport-errors.md)


## Related topics

- [基于主机的命令行工具](https://docs.xbox.com/zh-CN/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)
- [面向 XBOX 的主机端命令行工具](https://docs.xbox.com/zh-CN/tools/tools-console/console_commandlinetools/index.md)
- [从您的标题调用 wd 工具](https://docs.xbox.com/zh-CN/tools/tools-console/console_commandlinetools/titlecodecallingwdtools.md)
- [Economy v2 中的真钱价格跟踪](https://docs.xbox.com/zh-CN/services/playfab/economy-monetization/economy-v2/tutorials/real-money-price-tracking.md)
- [玩家自定义属性](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/game-configuration/segmentation/player-custom-properties.md)
