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 |