Preparing an Example

Most debugging features illustrated in this chapter require some code before you can use them. At the moment, it’s more important that you understand the Visual Studio 2015 instrumentation than see complex code, so we start with a simple code example that is a good base for understanding how the debugger works. You can create a new Visual Basic project for the Console and then type the code, as shown in Listing 5.1.

LISTING 5.1 Preparing the Base for the Debugger

Module Module1    Sub Main()          Console.WriteLine("Enter a valid string:")          Dim lineRead As String = Console.ReadLine()          Dim result As Boolean = Test(lineRead)          Console.WriteLine("Is a valid string: " ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.