Bewerken

Delen via


dv (Display Local Variables)

The dv command displays the names and values of all local variables in the current scope.

dv [Flags] [Pattern] 

Parameters

Flags
Causes additional information to be displayed. Any of the following case-sensitive Flags can be included:

/f <addr>
Lets you specify an arbitrary function address so that you can see what parameters and locals exist for any code anywhere. It turns off the value display and implies /V. The /f flag must be the last flag. A parameter filter pattern can still be specified after it if the string is quoted.

/i
Causes the display to specify the kind of variable: local, global, parameter, function, or unknown.

/r
Displays shadowed local variables with additional name decoration for disambiguation.

/t
Causes the display to include the data type for each local variable.

/v
Causes the display to include the virtual memory address or register location of each local variable.

/V
Same as /v, and also includes the address of the local variable relative to the relevant register.

/a
Sorts the output by address, in ascending order.

/A
Sorts the output by address, in descending order.

/n
Sorts the output by name, in ascending order.

/N
Sorts the output by name, in descending order.

/z
Sorts the output by size, in ascending order.

/Z
Sorts the output by size, in descending order.

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

Item Description
Modes User mode, kernel mode
Targets Live, crash dump
Platforms All

Additional Information

For details on displaying and changing local variables and a description of other memory-related commands, see Reading and Writing Memory.

Remarks

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.