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

来源:互联网 发布:雪梨淘宝店名 编辑:程序博客网 时间:2024/05/17 22:32

http://stackoverflow.com/questions/9614218/how-to-use-console-writeline-in-asp-net-c-during-debug

Console.Write will not work in ASP.Net as it is called using the browser. Use Response.Write instead

Where does Console.WriteLine go in ASP.NET?

If you want to write something to Output window during debugging, you can use

System.Diagnostics.Debug.WriteLine("SomeText");

but this will work only during debug.

Debug.WriteLine not working


0 0
原创粉丝点击