How To Trace

The following is a typical flow of events to create a trace (assuming that the directory that contains KTRACE.EXE is in the PATH):
  1. Enter the KTRACE command (with or without parameters) at any OS/2 command prompt.
  2. Tracing is now started;  a trace file is being created on the hard drive.
  3. Stop tracing by pressing the <ENTER> key.
Kernel Trace is started by entering the command KTRACE from any OS/2 window.  Command line help is available by executing the following command:
KTRACE ?
This displays the options and parameters which KTRACE.EXE can accept.  For detailed information on the command syntax see the Command section of this document.  The following screen is displayed:

Note that the full display of this screen is larger than the default OS/2 command prompt will display in a VIO window (25 lines).  In the preceding example, we have increased this window to have 40 lines using the following command:

MODE 80,40
This is recommended in order to maximize the output that is visible.  However, this is not always possible when using remote access technologies such as telnet or Netfinity.

If KTRACE.EXE is run without parameters, a trace will be started.  The following is an example of the output in this case:

Tracing is stopped by pressing the <ENTER> key.  It is also possible to stop tracing by running KTRACE.EXE again, using the -k option, or by pressing <CTRL-C> or <CTRL-Break>.

If no filename is specified with the -f option, then a trace with the default filename is created in the current directory.


© 2001 Golden Code Development Corporation.  ALL RIGHTS RESERVED