Debugging Preparation

The debugging functions built into the development environment enable you to test your C++, MFC, and mixed language programs. You can set and manage breakpoints, view and alter variables, and control threads. During the debugging process, you can halt to examine the state of an executable program, a dynamic-link library (DLL), threads, or an ActiveX control at nearly any point during program execution.

Debugging is a two-step process. First, you correct compile-time errors that prevent you from building your project, such as incorrect syntax, misspelled keywords, or type mismatches. Then, you use the debugger to detect and correct logic errors and errors in sequencing, branching, and interaction among program components.

This section covers the following topics: