Module Module1
Sub Main()
Debug.WriteLine("This line will be shown in the Visual Studio output console")
Console.WriteLine("Press a key to exit")
Console.ReadKey()
Debug.WriteLine("End of application")
End Sub
End Module
will produce: