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

后端 未结 7 830
误落风尘
误落风尘 2020-12-22 21:51

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:13

    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.

提交回复
热议问题