Datasheet

Debug
The Debug menu, shown in Figure 1-20, contains commands that help you debug a program. These
commands help you run the program in the debugger, move through the code, set and clear breakpoints,
and generally follow the code’s execution to see what it’s doing and hopefully what it’s doing wrong.
Effectively using these debugging techniques can make finding problems in the code much easier, so
you should spend some time learning how to use these tools. They can mean the difference between
finding a tricky error in minute, hours, or days.
The commands visible in the Debug window change, depending on several conditions such as the type
of file you have open, whether the program is running, the line of code that contains the cursor, and
whether that line contains a breakpoint. This section discusses the menu items shown in Figure 1-20.
You will see other menus items under different circumstances.
The following list briefly describes the Debug menu’s commands:
❑ Windows — This submenu’s commands display other debugging-related windows. This sub-
menu is described in more detail in the following section, “The Debug ➪ Windows Submenu.”
Figure 1-20: The Debug menu contains commands for debugging an application.
24
Part I: Getting Started
37055c016.qxd 4/8/07 12:46 PM Page 24










