WinForm 程序中使用 Console 输出调试信息

1. 新建一个WinForm程序;
2. 菜单"Project","Properties","Application",将"Output type"设置为“Console Application”;

这样在运行该WinForm程序时会启动一个控制台窗口。

可以使用:
Console.WriteLine();
Console.Write();
输出调试信息

个人觉得,这种方式比写日志或使用Debug.WriteLine()方便。

相关文章:

  • 2021-12-06
  • 2021-05-10
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2021-06-25
相关资源
相似解决方案