Previous Topic: Syntax for Commands

Next Topic: ! Command

Script File Errors and Debugging

Usually the system does not echo commands in script files before they are executed. If there is an error in the script file, a message similar to the following is displayed:

>>>> set allow-binds = 1;
 -----------------------^ (line 12 in 'test.dxc')
 Syntax Error: Expected 'true' or 'false'

To obtain a full log of every command executed in a script file, set the first lines of the script file to:

echo-on;
set trace-file = "script.log";

After running the script file, you can examine the log file to locate any failed command and the reason for the failure.