[UWP]查看UWP应用程序的诊断日志 [英] [UWP]View Diagnostics logs from a UWP Application

查看:254
本文介绍了[UWP]查看UWP应用程序的诊断日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将跟踪日志添加到我的C#UWP应用程序中:

           

解决方案

嗨nvineeth,


>>我使用xperf获取日志,但选项非常含义。

从你的描述中你似乎不知道如何使用xperf捕获一些日志(你不知道那些xperf选项)。

如需快速入门,请查看此处的官方样本:


此外,您可以使用Device Portal查看UWP的调试日志。

https://blogs.windows.com/buildingapps/2016/06/ 10 / using-device-portal-to-view-debug-logs-for-uwp /#tG40tklBiMgM5Z81.97


如果您仍然对如何使用Xperf感到困惑,请列出一些您需要知道的命令,然后我会帮您检查一下。


致以最好的问候,

David


I have added trace logs to my C# UWP application :

           

解决方案

Hi nvineeth,

>> I am using xperf to get the logs, but the options are very cryptic.
From your description it seems you have no idea about how to use xperf to capture some logs(You have no idea about those xperf option).
For a quick start please check the official sample here: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Logging
Where you will see the following:

"For example, you might do the following (replacing GUID with the correct GUID for each button):
xperf -start MySession -f MyFile.etl -on GUID
(click button)
xperf -stop MySession
tracerpt MyFile.etl
"
For more details, please refer to the link below for a list of Xperf options.
https://msdn.microsoft.com/en-us/windows/hardware/commercialize/test/wpt/xperf-options

Besides, you could use Device Portal to view debug logs for UWP.
https://blogs.windows.com/buildingapps/2016/06/10/using-device-portal-to-view-debug-logs-for-uwp/#tG40tklBiMgM5Z81.97

If you are still confused about how to use Xperf, please list some possible commands that you need to know and then I will help you check it.

Best regards,
David


这篇关于[UWP]查看UWP应用程序的诊断日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆