Visual Studio debugger guide --- Locals window

When in debug mode interruption, the Locals window will automatically display variables. The variables in the window are added automatically by the debugger.

turn on

  • Via menu
  • Shortcut key
    Alt + 4

Window use

At the function call, only the parameters of the function are displayed. After entering the function body, the debugger will automatically add all the variables

 

When a variable is a structure, class or array, you can click the expansion symbol on the left to expand to observe the details

Double-click the "Value" column to edit and modify the variable value

Right-click in this window area, there is the following menu

  •  Copy Copy
    the contents of all columns in the selected row
  • Edit Value
    to edit the selected variable value
  • Hexadecimal Display When
    checked, hex display

Explanation

This window cannot add variables to be observed by itself.

Guess you like

Origin www.cnblogs.com/yilang/p/12677958.html