Specifies a log file to which the debugger writes after a SET OUTPUT LOG command has been entered. Format SET LOG file-spec
1 – Parameters
file-spec Denotes the file specification of the log file. If you do not supply a full file specification, the debugger assumes SYS$DISK:[]DEBUG.LOG as the default file specification for any missing field. If you specify a version number and that version of the file already exists, the debugger writes to the file specified, appending the log of the debugging session onto the end of that file.
2 – Description
The SET LOG command determines only the name of a log file; it does not cause the debugger to create or write to the specified file. The SET OUTPUT LOG command accomplishes that. If you entered a SET OUTPUT LOG command but no SET LOG command, the debugger writes to the file SYS$DISK:[]DEBUG.LOG by default. If the debugger is writing to a log file and you specify another log file with the SET LOG command, the debugger closes the former file and begins writing to the file specified in the SET LOG command. Related commands: SET OUTPUT LOG SET OUTPUT SCREEN_LOG SHOW LOG
3 – Examples
1.DBG> SET LOG CALC DBG> SET OUTPUT LOG In this example, the SET LOG command specifies the debugger log file to be SYS$DISK:[]CALC.LOG. The SET OUTPUT LOG command causes user input and debugger output to be logged to that file. 2.DBG> SET LOG [CODEPROJ]FEB29.TMP DBG> SET OUTPUT LOG In this example, the SET LOG command specifies the debugger log file to be [CODEPROJ]FEB29.TMP. The SET OUTPUT LOG command causes user input and debugger output to be logged to that file.