Debug: N--Examples
Suppose you've started Debug and loaded the program PROG.COM for debugging.
You subsequently decide to specify two parameters for PROG.COM and run the
program. Following is the sequence of commands for this example:
debug prog.com
nparam1 param2
g
In this case, the Debug g (go) command runs the program as if you had typed the following command at
the Windows NT prompt:
prog param1 param2
Testing and debugging therefore reflect a typical run-time environment for
PROG.COM.
In the following sequence of commands, the first n command specifies FILE1.EXE as the file for the subsequent l (load) command, which loads FILE1.EXE into memory. The second n command specifies the parameters to be used by FILE1.EXE. Finally, the g command runs FILE1.EXE as if you had typed FILE1 FILE2.DAT FILE3.DAT at the Windows NT prompt.
nfile1.exe
l
nfile2.dat file3.dat
g
Note
You do not use the l command after the second form of the n command. Also note that if you now use the w (write) command, Windows NT saves FILE1.EXE, the file being debugged, with
the name FILE2.DAT. To avoid this result, you should always use the first form of
the n command immediately before either an l or a w command.
More Information About Debug: N
Debug: N--Notes
Debug: N