Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Trace (Description)
◄Summary► ◄Notes► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The Trace (T) command executes the current source line if the
active Source window is in Source mode, or executes the current
instruction if the active Source window is in Assembly or Mixed
mode. The current source line or instruction is the one pointed to
by the CS and IP registers.
If <count> is specified, the command executes <count> lines or
instructions before stopping.
Source Mode
In Source mode, the Trace command traces only into functions that
have source code. For example, if the current line contains a call
to a standard C library function, the debugger simply executes
this function, since the source code for the function is not
available. In the protected-mode version of CodeView (CVP), other
threads run concurrently with the current thread (equivalent to
the ~*T command).
Assembly/Mixed Mode
In Assembly or Mixed mode, CodeView always traces into functions.
If the current instruction is CALL or INT, the debugger executes
the first instruction of the procedure or interrupt. If the
current instruction is REP, the debugger executes one iteration of
the repeated string sequence. In the protected-mode version of
CodeView (CVP), other threads are frozen (equivalent to the ~.P
command).
CodeView does not execute the first instruction of INT 21H
interrupts; there is no direct way to trace into DOS function
calls.
See: ◄Use with Thread Command (~)►
◄Process (|) Command-Window Command►
◄Source Display Mode (S) Command-Window Command►
◄Options Menu: Source-Window Command►
-♦-