简体   繁体   English

如何从 HoloLens 2 设备获取 Console.Debug 日志

[英]How to get Console.Debug Logs from the HoloLens 2 device

I've created an HoloLens 2 App and deployed it to the HoloLens 2. The app isn't working properly so I want to see error messages to fix it.我创建了一个 HoloLens 2 应用程序并将其部署到 HoloLens 2。该应用程序工作不正常,所以我想查看错误消息以修复它。 In Unity the App works fine.在 Unity 中,应用程序运行良好。 How can I debug my App from the HoloLens 2?如何从 HoloLens 2 调试我的应用程序?

Visual Studio can help you to deploy and debug your app or even to debug a Universal Windows app that's installed without deploying from a Visual Studio project. Visual Studio 可以帮助你部署和调试你的应用程序,甚至调试一个安装的通用 Windows 应用程序,而无需从 Visual Studio 项目进行部署。

Besides, you should use Unity API Debug.Log to print informational messages and the logs are all displayed in the output window of Visual Studio.此外,您应该使用 Unity API Debug.Log打印信息性消息,并且日志都显示在 Visual Studio 的输出窗口中。 For how to do it, please follow this step-by-step guide: Using Visual Studio to deploy and debug有关如何操作,请按照此分步指南进行操作: 使用 Visual Studio 进行部署和调试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 hololens 上调试 unity c# 项目 - How to debug a unity c# project on hololens 在Visual Studio 2015/2017中,如何显示Angular2调试控制台日志/信息? - In Visual Studio 2015/2017 how does one display Angular2 Debug Console Logs/Info? 如何在Hololens中获得凝视/光标坐标? - How to get gaze/cursor coordinates in Hololens? Hololens-无法连接到设备 - Hololens- Failed to Connect to Device 如何从Visual Studio 2013调试.NET控制台应用程序 - How to debug .NET console application from Visual Studio 2013 从Visual Studio运行Unity HoloLens程序时,引发异常时,如何获取堆栈跟踪中的行号? - When running a Unity HoloLens program from Visual Studio, when an exception is thrown how do I get the line numbers in the stack trace? 如何让 visual studio 记住 .net 控制台应用程序的 window position 和大小,每次调试或操作 session - how to get visual studio to remember .net console app's window position and size, each debug or operation session 如何在cmd.exe中进行调试,而不是在“ MS VS调试控制台”中进行调试 - How to debug in cmd.exe instead of “MS VS Debug Console” 如何自定义Visual Studio控制台的“调试”窗口? - How to customize Visual Studio Console Debug window? 如何在 Visual Studio 输出中显示已安装设备应用程序的输出日志? - How to show output logs of installed device apps in Visual Studio output?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM