【发布时间】:2011-10-16 07:03:54
【问题描述】:
完整程序:
Option Strict On : Option Explicit On Module Module1
Sub Main()
'System.Diagnostics.Debug.Listeners.Add(New System.Diagnostics.TextWriterTraceListener("C:\a.txt"))
System.Diagnostics.Debug.Listeners.Add(New System.Diagnostics.TextWriterTraceListener("a.txt"))
System.Diagnostics.Debug.WriteLine("asd")
End Sub
End Module
运行后,我的调试文件夹中有一个文件 a.txt,但大小为 0 字节(打开时它当然是空的)
输出中不应该有“asd”吗?
【问题讨论】:
标签: c# .net vb.net debugging system.diagnostics