VB.Net - Console

I’m a bit old fashioned of a programmer. I like Visual Basic, and I like sending stuff to a console. The language itself sort of supports this. There are debug.writeline, trace.writeline and a console.Writeline functions. I could write a console application which pushes stuff to the screen.

Here’s what I have so far:

SI

In the SI project which is a class library. I use a lot of statements similar to the following:

1
Trace.WriteLine(Date.Now.ToString & " --> " & sql)

When I’m running inside Visual Studio, this will send the output to the Output window.

Timesheet

In the timesheet project (web forms) code of this sort:

1
2
3
System.Diagnostics.Trace.WriteLine("output from Trace.writeline")
Console.WriteLine("output from console.writeline")
System.Diagnostics.Debug.WriteLine("Output from debug.writeline")

When I’m running inside Visual Studio, this will send the debug.writeline statement to the Output window.