相关技巧
主页 > 网络编程 > 相关技巧 >

VS2022如何调出输出窗口并在输出窗口打印日志

2024-12-13 | 佚名 | 点击:

在输出窗口打印

1

2

3

4

5

6

7

System.Diagnostics.Debug.WriteLine("这是一行自定义的输出。Debug.WriteLine");

System.Diagnostics.Debug.Write("这是第二行自定义的输出,Debug.Write");

 

System.Diagnostics.Debug.WriteLine("换行");

 

System.Diagnostics.Trace.Write("这是一行自定义的输出,Trace.Write");

System.Diagnostics.Trace.WriteLine("这是一行自定义的输出,Trace.WriteLine");

且在程序退出调试之后还会存在。

打开输出窗口

清空输出窗口

在输出窗口右键,点击全部清除。

输出过滤

文档:

1

https://learn.microsoft.com/zh-cn/visualstudio/ide/reference/output-window?view=vs-2022

原文链接:
相关文章
最新更新