Debugger : The Set File, Set Output And Cancel Output Commands : SET OUTPUT Command : Using a Log File

Using a Log File

One possible use of the log file is for an off line analysis of the prototype run. You use the saved transcript to see what events occurred in the run and in which order. Relationships between various other elements can also be examined. For example, you can check whether two specific activities were ever active simultaneously in the run. Such post-run analysis is very helpful in localizing errors in the specification.

You can also use the log file as a command file in another run of the same or corrected debugging prototype. For this, you simply refer to the log file’s name in the LOAD command. For example:

Pdb > LOAD debug.log

As a result, the Debugger reads and performs in turn all commands recorded in the file. The Debugger easily extracts the commands from the entire transcript since they are not marked by a double hyphen. Thus, you can save a debugging scenario and then re-use it in several runs of the prototype.