[英]Uno platform: Debug.Writeline for Wasm doesn't output anything
I'm trying to figure out how to debug Uno Platform apps for the Wasm target.我试图弄清楚如何为 Wasm 目标调试 Uno Platform 应用程序。 Breakpoints don't work and I have not figured out how to get debug output to work, either.
断点不起作用,我也没有弄清楚如何让调试 output 工作。
For example, I have in App.xaml.cs例如,我在 App.xaml.cs
public App()
{
...
Debug.WriteLine("OnStart.begin");
}
and和
using System.Diagnostics;
But noting appears in the "output" window when I run the app.但是当我运行应用程序时,注意到出现在“输出”window 中。 Is there a different logging technique I should use?
我应该使用不同的日志记录技术吗?
EDIT编辑
I followed the instructions, mentioned by Jerome, and opened the debug panel for my app.我按照 Jerome 提到的说明打开了我的应用程序的调试面板。 However, there were no further instructions displayed at that point and I didn't see any scripts that seemed to resemble my app.
但是,当时没有显示进一步的说明,我也没有看到任何与我的应用程序相似的脚本。 See attached screenshot.
请参阅随附的屏幕截图。 What should I be looking for?
我应该寻找什么?
Debug.WriteLine
is not supported on WebAssembly at this point.目前 WebAssembly 不支持
Debug.WriteLine
。
You can use Console.WriteLine()
instead, or use the logging facilities provided by the default Uno app template (using this.Log().Debug(...)
, and the [ConfigureLoggers][1] method)您可以改用
Console.WriteLine()
,或使用默认 Uno 应用程序模板提供的日志记录工具(使用this.Log().Debug(...)
和 [ConfigureLoggers][1] 方法)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.