
158Microsoft Visual Studio 2010: A Beginner’s Guide
Figure 6-7 The Breakpoints window
Managing Breakpoints
Over time, breakpoints can be set across many locations in your project. You can manage all of these breakpoints in a central location by selecting Debug Windows Breakpoints, which will show the window in Figure
Much of the functionality of the Breakpoints window has been explained already, except that the toolbar options apply to all of the breakpoints that are currently checked. Clicking a column sorts the contents. The Search box helps you filter breakpoints, and the In Columns box helps focus on what the search applies to. There are export and import buttons on the toolbar that allow you to respectively save and retrieve breakpoints to and from an XML file.
Once you set a breakpoint, you can step through code to see what the execution flow of the program is, as is discussed in the next section.
Stepping Through Code
Stepping through code is the process of executing one or more lines of code in a controlled manner. At the most granular level, you can step through code
To step through code, open a project, set a breakpoint, and run with debugging until the program hits the breakpoint. At that point in time, you can perform various operations such as step, step over, and step out. Table