Can you have multiple .net Consoles (as in Console.Writeline)

后端 未结 4 905
無奈伤痛
無奈伤痛 2020-12-11 06:59

It would be handy during debugging to have multiple consoles (not multiple monitors, which I already have). I am imagining something like Console.WriteLine(1, String1) whic

4条回答
  •  旧时难觅i
    2020-12-11 07:46

    Rather than multiple consoles you might want to consider the idea of multiple log appenders. I'm not a real big fan of printf debugging, but I do sometimes see a place for multiple log files. Using something like log4net, you can configure multiple appenders and loggers that correspond to different classes/namespaces and log these to separate files. You could use the logging information to help debug using something like TextPad to view the log file(s) while debugging, since TextPad, unlike NotePad, detects and allows you to view the contents of any updates done while the file is open. There may be other editors that allow this, too, but I'm familiar with TextPad.

提交回复
热议问题