table of Contents
What is the use of dynamic debugging
What is the VS debugger
VS debugger, the program allows us to "pause" live slowly during the execution of research programs, help us to understand the operating logic of the program.
Start several ways to debug
- F10 (Debug Menu / Step Over)
- F5 (Debug menu / start the debugger)
Breakpoints and single-step presentation
- Single step over (F10): line by line execution program
- Single step into (F11): It had almost the same with a single step, in addition to the face function: the face of a function, the role is to F10 function as a whole across, while F11 will enter into the internal functions (if there is source code words)
- Breakpoints: Breakpoints similar to "highway robbery", if during the execution of the program encounters a breakpoint, the program will be "pause" live. In VS, switching the F9 breakpoint.
Debug window settings
Be sure to enter the debug state, to set up the following window.
Memory window
Memory window to view the memory contents of the specified memory address.
Watch Window
Watch window to monitor the current scope variable names visible in the range of expressions.
Backtrace window (call stack window)
Backtrace window displays the current call relations function.