Debug: d (dump)

Displays the contents of a range of memory addresses. Used without parameters, d displays the contents of 128 bytes, starting at the end of the address range specified in the previous d subcommand.

Syntax

d [range]

Parameters

range : Specifies the starting and ending addresses, or the starting address and length, of the memory area whose contents you want to display.

?: Displays a list of debug subcommands.

Remarks

Windows XP does not use this command. It is accepted only for compatibility with MS-DOS files. 

Specifying valid range entries

Use range with a debug subcommand to specify a range of memory. You can choose one of the following formats for range: a starting address and an ending address, or a starting address and the length (denoted by l) of the range. For example, both of the following syntaxes specify a 16-byte range beginning at CS:100:

cs:100 10f

cs:100 l 10

When you use the d subcommand, Debug.exe displays memory contents in two portions: a hexadecimal portion (that is, each byte value is shown in hexadecimal format) and an ASCII portion (that is, each byte value is shown as an ASCII character). Each nonprinting character is denoted by a period (.) in the ASCII portion of the display. Each display line shows the contents of 16 bytes, with a hyphen between the eighth and ninth bytes. Each display line begins on a 16-byte boundary.

For information about displaying the contents of registers by using the r (register) subcommand, see Related Topics.

Examples

Type:

dcs:100 10f

Debug.exe displays the contents of the range in the following format:

04BA:0100 54 4F 4D 00 53 41 57 59-45 52 00 00 00 00 00 00.....

If you type the d subcommand without parameters, Debug.exe formats the display as described in the previous example. Each line in the Command Prompt window begins with an address that is 16 bytes greater than the address on the previous line (or 8 bytes if you have a 40-column screen). For each subsequent d subcommand that you type without parameters, Debug.exe displays the bytes immediately following those last displayed.

To display the contents of 20h bytes, starting at CS:100, type:

dcs:100 l 20

To display the contents of all bytes in the range of lines from 100h through 115h in the CS segment, type:

dcs:100 115

Formatting legend

FormatMeaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Debug subcommands

Debug: n (name)

Debug: r (register)

Command-line reference A-Z



© 2017 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies