MS-DOS DEBUG Basics for Fixed-Format Files


The MS-DOS DEBUG program provides a generally available tool for examining and analyzing files in an IBM-PC microcomputer based environment. Files can be loaded and their internal data can be displayed (in hexadecimal) regardless of whether or not the data is encoded in a character format.


The Debug Dump/Display Format

Sample DEBUG Dump
1373:0100  46 FE 06 47 DB EB EF E8-DB F9 75 04 FE 06 A3 D8  F..G......u.....
1373:0110  3C 3F 75 05 80 0E A7 D8-02 3C 2A 75 05 80 0E A7  <?u......<*u....
1373:0120  D8 02 3A 06 94 D2 75 C9-4E 32 C0 86 04 46 3C 0D  ..:...u.N2...F<.
1373:0130  75 02 88 04 89 36 6B D7-89 0E 69 D7 C3 BE 48 DB  u....6k...i...H.
1373:0140  8B 4C 05 8B 74 09 E8 08-00 03 F1 E8 03 00 3C 0D  .L..t.........<.

Running Debug &: Basic Commands

A File Dump Example

C:\CSA>DEBUG
-Ndemofile
-L
-D
1373:0100  46 49 52 53 54 20 FE FF-53 45 43 4F 4E 44 32 00  FIRST ..SECOND2.
1373:0110  54 48 49 52 44 20 46 00-BF FC 46 36 91 00 62 13  THIRD F...F6..b.
1373:0120  D6 C6 06 47 DB 00 E3 31-49 AC E8 D9 F6 74 08 49  ...G...1I....t.I
1373:0130  46 FE 06 47 DB EB EF E8-DB F9 75 04 FE 06 A3 D8  F..G......u.....
1373:0140  3C 3F 75 05 80 0E A7 D8-02 3C 2A 75 05 80 0E A7  <?u......<*u....
1373:0150  D8 02 3A 06 94 D2 75 C9-4E 32 C0 86 04 46 3C 0D  ..:...u.N2...F<.
1373:0160  75 02 88 04 89 36 6B D7-89 0E 69 D7 C3 BE 48 DB  u....6k...i...H.
1373:0170  8B 4C 05 8B 74 09 E8 08-00 03 F1 E8 03 00 3C 0D  .L..t.........<.
-Q
C:\CSA>



File Interpretation examining each 8-byte record one at a time