Console.WriteLine does not show up in Output window

后端 未结 9 1406
梦毁少年i
梦毁少年i 2020-12-07 19:49

I have put some Console.WriteLine calls in to test, but they aren\'t appearing in the output box?

public static ArrayList myDeliveries = new Arr         


        
9条回答
  •  遥遥无期
    2020-12-07 20:37

    Using Console.WriteLine( "Test" ); is able to write log messages to the Output Window (View Menu --> Output) in Visual Studio for a Windows Forms/WPF project.

    However, I encountered a case where it was not working and only System.Diagnostics.Debug.WriteLine( "Test" ); was working. I restarted Visual Studio and Console.WriteLine() started working again. Seems to be a Visual Studio bug.

提交回复
热议问题