How to use Console.WriteLine in ASP.NET (C#) during debug?

后端 未结 7 2209
说谎
说谎 2020-12-22 21:40

I want to write some result to the console in ASP.NET (C#). It works in a Window application, but a Web application does not work. Here is what I have tried:



        
相关标签:
7条回答
  • 2020-12-22 22:27

    Make sure you start your application in Debug mode (F5), not without debugging (Ctrl+F5) and then select "Show output from: Debug" in the Output panel in Visual Studio.

    0 讨论(0)
提交回复
热议问题