The SET FILE command specifies the name of the file in which the debugging session is to be recorded. This file is called the log file. To actually start the recording, use the SET OUTPUT command. The command is started as:
As an argument, you enter any string which is a legal file_name for your environment. If no
file_name
is given, the default name becomesdebug.log
.The file name can be a full pathname explicitly specifying the directory in which the file resides. Otherwise the file is created in the directory from which the prototype was run. You must have appropriate write privileges in this directory.
When you use multiple SET FILE commands in the same session, the recording is written into the log file specified in the most recently entered command. Moreover, in such a case, you lose the ability to log information into the former file since the file is recreated each time the SET FILE command is issued.