在 UWP 中将文本发送到 Visual Studio 输出

Send text to Visual Studio Output in UWP

在标准 .NET 中有 System.Diagnostics.Debug.WriteLine,在 UWP C# 中也有 System.Diagnostics.Debug - 但是当我编写 C++/CX Windows 运行时组件时,显然没有对 System.Diagnostics.Debug...

我是否遗漏了一个引用或者我是否应该无法在 VC++ Windows 运行时组件中使用它?

我是否需要将对此的访问包装为单独的 C# Windows 运行时组件,然后在我的 C++ 运行时组件中引用该运行时组件?

我肯定遗漏了一些简单的东西,但我通常是 VC++ 的 UWP 和一般 UWP 的新手。

抱歉,到目前为止,关于 UWP 的文档和资源很少。

您可以使用OutputDebugString在C++中编写调试语句。