Tracing Model Execution
Mosel can execute a model in trace mode. When executing in trace mode, the line number of each executed line is written to a trace file named sourcefile-timestamp.trac. This feature can be used to identify the point of failure if a model terminates unexpectedly. Trace mode output can be controlled via annotations, for more see Mosel Command: Tracing Mode.
Complete the following steps to execute a Mosel model in trace mode:
- In the Run Configurations drop-down list, select the Mosel source file for which you want to collect coverage data.
- Click Run Tools, the fourth button to the right of the Run Configurations drop-down list.
- In the menu that appears, click Show Run Dialog.
- In the Run Model dialog box, set the Run Mode field to Trace Model Execution.
- Click Run.