【发布时间】:2013-02-05 17:53:41
【问题描述】:
我在我的 ASP.NET MVC4 项目的模型中写了System.Console.WriteLine("How can I see this debugging information in a browser");。如何在浏览器控制台或至少在 Visual Studio 中看到此调试字符串?我在 Visual Studio 的输出窗口中找不到它。也许我需要从 NuGet 安装一些插件?
【问题讨论】:
-
如果你处于调试模式输出窗口应该显示吗?没有?
-
@adt No.
Console.WriteLine不会显示在输出窗口中,因为它是由 ASP 中的浏览器调用的。
标签: asp.net asp.net-mvc