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

Shai UI picture Shai UI · Dec 19, 2010 · Viewed 266.7k times · Source

I just open a console application and I type

Console.WriteLine("Test");

But the output window doesn't show this. I go to the output window with Ctrl+W,O

But nothing shows up when I run my program, am I nuts or is this not supported in the visual studio 2010 express?

Answer

Adam Maras picture Adam Maras · Dec 19, 2010

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.