Where does Console.WriteLine go in Debug?

后端 未结 10 2149
后悔当初
后悔当初 2020-12-15 16:23

I found this question, but what I want to know is different - does the output from Console.WriteLine go anywhere when debugging? I know that for it to go to the output windo

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 17:06

    Even in a WinForms app, you can create a console window, but you'll have to go through P/Invoke to call a Win32 method directly. See http://pinvoke.net/default.aspx/kernel32/AllocConsole.html

提交回复
热议问题