O'Reilly logo

Learning C# 3.0 by Brian MacDonald, Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Examining Values: The Autos and Locals Windows

Look at the tabs below the code window—if you're using Visual Studio, you'll find a Locals window and an Autos window, possibly as tabs in a single window along with some others. If you're using C# Express, the Autos window won't be there, but Locals will be. Both of these display your local variables. The difference is that the Autos window shows variables used in the current statement and the previous statement. (The current statement is the statement at the current execution location, which is highlighted automatically in the debugger—thus, the window's name.) The Locals window displays all the variables in the current method, including parameters, as shown in Figure 9-8, along with each variable's current value and type.

In Visual Studio, the Breakpoint menu allows you to select various options for your breakpoint settings.

Figure 9-5. In Visual Studio, the Breakpoint menu allows you to select various options for your breakpoint settings.

The Breakpoint Hit Count dialog lets you choose how often you want this point to be reached before breaking.

Figure 9-6. The Breakpoint Hit Count dialog lets you choose how often you want this point to be reached before breaking.

Tip

The debugger stacks the Autos and Locals windows together with other tabs, as shown in Figure 9-8. You are free to separate these windows or to move them to be tabbed with other windows. You can simply drag-and-drop the windows where you want them. When you drop one window onto another, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required