在控制台中调试
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
将产生:
