Why doesn't Console.Writeline, Console.Write work in Visual Studio Express?

Console.WriteLine writes your output to the console window opened by your application (think black window with white text that appears when you open the Command Prompt.) Try System.Diagnostics.Debug.WriteLine instead.


No satisfactory answers provided.

System.Diagnostics.Debug.WriteLine() will write messages to the Output:debug window, but so much crap is constantly dumped into that window by every process under the sun, it is like finding a needle in a haystack to find YOUR messages.

Console.WriteLine() does not write to any window in Visual Studio. I guess it will only write to the application console if your application creates a console in the first place, i.e. if it is a Console application.

Why is the tooling making the simple task of having your web application server side code .cs code write some debug messages into a window which is swamped with crap making it almost impossible to find your information?


Go to properties in you own project in Solution Explorer window and choose application type and look for Output Type and change it's value to Console Application . This will make console screen besides your form. If you close console screen, your form will be closed too.

Good luck.