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

前端 未结 7 1417
死守一世寂寞
死守一世寂寞 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 04:58

    Change application type to Windows before debugging. Without Console window, Console.WriteLine works like Trace.WriteLine. Don't forget to reset application back to Console type after debugging.

提交回复
热议问题