Seeing the console's output in Visual Studio 2010?

后端 未结 10 638
不思量自难忘°
不思量自难忘° 2020-12-12 12:15

I am writing a simple C# program with some outputs (Console.WriteLine(\"...\");). The problem is, each time I run it, I cannot see the program\'s output in the

10条回答
  •  独厮守ぢ
    2020-12-12 13:16

    System.Diagnostics.Debug.WriteLine() will work, but you have to be looking in the right place for the output. In Visual Studio 2010, on the menu bar, click Debug -> Windows -> Output. Now, at the bottom of the screen docked next to your error list, there should be an output tab. Click it and double check it's showing output from the debug stream on the dropdown list.

    P.S.: I think the output window shows on a fresh install, but I can't remember. If it doesn't, or if you closed it by accident, follow these instructions.

提交回复
热议问题