Console.WriteLine does not show up in Output window

后端 未结 9 1400
梦毁少年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:25

    If you want Console.WriteLine("example text") output to show up in the Debug Output window, temporarily change the Output type of your Application from Console Application to Windows Application.

    From menus choose Project + Properties, and navigate to Output type: drop down, change to Windows Application then run your application

    Of course you should change it back for building a console application intended to run outside of the IDE.

    (tested with Visual Studio 2008 and 2010, expect it should work in latter versions too)

提交回复
热议问题