Preparing an Example

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

image

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 ...

Get Visual Basic® 2010 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.