Console output from web applications in Visual Studio
Solution 1
Debug.WriteLine
Solution 2
They are two form to write in Console Output for NET applications.
Debug.WriteLine() // See [Microsoft Documentation][1]
Trace.WriteLine() // See [Microsoft][2] documentation for more information
The difference between the two is that Debug only work when the program is in DEBUG mode. In the other hand TRACE works always. You can also set different levels of TRACE. See documentation for more information.
I hope that this information help you.
Björn Lindqvist
Hello, my name is Björn Lindqvist I'm a consultant. Here is my resume: http://www.bjornlindqvist.se/ I am one of those people who protests a lot against all the closing of perfectly valid and useful questions on SO. Smart people are nice. The world would be a better place if there where more meritocracies in it.
Updated on December 17, 2020Comments
-
Björn Lindqvist over 3 years
How do you debug web applications written in C# in Visual Studio? I'm using Console.WriteLine expecting the text to appear in the Output tab. Like it does when you develop console applications. But for web applications, the console output doesn't show up anywhere.