Debug: h (hexadecimal)

Performs hexadecimal arithmetic on two parameters that you specify.


h value1 value2


value1 : Required. Represents any hexadecimal number in the range 0 through FFFFh.

value2 : Required. Represents a second hexadecimal number in the range 0 through FFFFh.

?: Displays a list of debug subcommands.


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

Debug.exe adds the two parameters you specify and then subtracts the second parameter from the first. The results of these calculations are displayed on one line: first the sum, and then the difference.



h19f 10a

Debug.exe performs the calculations and displays the following result:

02A9 0095

Formatting legend



Information that the user must supply


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

Command-line reference A-Z

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