Full Program:
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
After I ran it, I had a file a.txt in my debug folder but the size is 0 bytes (and when i open it is empty of course)
Shouldn’t the output had “asd” in it ?
Add one or more
statements, and/or a
when closing that App.