Most debugging features illustrated in this chapter require some code before you can use them. At the moment we are more interested in the Visual Studio 2010 instrumentation than in complex code, so we start with a simple code example that is a good base for understanding how the debugger works. Therefore, 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
The code is quite simple. The application just asks the user to enter a string and then returns False
if the string is null or is empty, whereas it returns True
if the string is valid. With such simple code you can now begin learning the advanced debugging instrumentation available in Visual Studio 2010.
18.217.101.72