KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q31919: Using the T Command to Echo CodeView Output

Article: Q31919
Product(s): See article
Version(s): 2.00 2.10 2.20
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 16-NOV-1988

To generate and record a history of the source lines stepped
through in the course of a debugging session, do the following:

   1. Start CodeView in sequential mode using the /T option.
   2. While in sequential mode, enter the Redirect Output (>) command,
followed by a filename. If no filename is specified, then stdout will
be assumed.
   3. If you wish to view the output as it is redirected, precede the
redirection operator with the echo command (T).
   4. If a second redirection operator is specified, the redirection
file is appended to rather than truncated before output.

   For more information on output redirection, refer to the "System
Commands" section of the "Microsoft CodeView and Utilities" manual.

   The following example demonstrates this process:

CV> T > log.dat  or T >> log.dat
CV> t
CV> t
CV> t
CV> .
CV> .
CV> .
CV> q

   The lines traced will be written both to the console and to the log
file.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.