Redirect Console.Write… Methods to Visual Studio's Output Window While Debugging

前端 未结 7 1402
死守一世寂寞
死守一世寂寞 2020-12-03 04:47

From a Console Application project in Visual Studio, I want to redirect Console\'s output to the Output Window

7条回答
  •  [愿得一人]
    2020-12-03 05:10

    Actually, there is an easiest way: In the "Options" window of Visual Studio (from the Tools menu), go to "Debugging" then check the option "Redirect All Output Window Text to the Immediate Window".

提交回复
热议问题