Debugging Tools for Windows
dv (Display Local Variables)
The dv command displays the names and values of all local variables in the current scope.
Syntax
dv [Flags] [Pattern]
Parameters
- Flags
- Pattern
- Causes the command to only display local variables that match the specified Pattern. The pattern may contain a variety of wildcards and specifiers; see String Wildcard Syntax for details. If Pattern contains spaces, it must be enclosed in quotation marks. If Pattern is omitted, all local variables will be displayed.
Environment
| Modes | user mode, kernel mode |
| Targets | live, crash dump |
| Platforms | all |
Comments
In verbose mode, the addresses of the variables are displayed as well. (This can also be done with the x (Examine Symbols) command.)
Data structures and unfamiliar data types are not displayed in full; rather, their type name is displayed. To display the entire structure, or display a particular member of the structure, use the dt (Display Type) command.
The local context determines which set of local variables will be displayed. By default, this context matches the current position of the program counter. For information about how this can be changed, see Local Context.
Additional Information
For details on displaying and changing local variables and a description of other memory-related commands, see Reading and Writing Memory.