SxsTrace 的使用场景
SxsTrace 是 Windows 上的一个 WinSxs Tracing Utility,用来跟踪诊断由激活上下文失败/不正确的 side-by-side 配置产生的错误。
例如常见的:
1 2 |
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail. |
我们用 SxsTrace 来跟踪诊断具体产生的原因。
SxsTrace 的用法
1 |
Sxstrace [{[trace /logfile: [/nostop]|[parse /logfile: /outfile: [/filter:]}] |
1.首先打开 cmd/powershell,然后执行以下命令开始跟踪:
1 2 3 4 |
sxstrace trace -logfile:<trace_log_file_with_path> #for example: sxstrace trace -logfile:D:\trace.bin |
2.运行有问题的程序->问题出现->按ENTER键停止跟踪。
3.SxsTrace的跟踪信息会保存在给定的文件中。
Continue Reading…