How does a debugger cause a running program to interrupt itself?

You can place debug breakpoints at designated locations in the program. When the
program you are debugging encounters a breakpoint, execution freezes and the
debugger gains control. Two types of breakpoints exist: location and data. Visual C++
also provides conditional and message breakpoints, but these are simply special cases
of location breakpoints.

No comments: