Next: trace
Up: Tracing and the Print
Previous: Tracing and the Print
When the system variable printlevel is set to the default of
1, only the results of Darwin statements and statements nested at
depth one inside for, while and if commands are displayed.
If printlevel is set to value 0, only Darwin statements
which were directly entered to system are displayed. Given a negative
value, printlevel displays only the result of print
statements. Enter the following short segment of code after setting
the printlevel variable to negative one, zero and then one and
observe the differences in output it generates.
> lprint('Calculating the sum from 1..5);
> total := 0;
> for i to 5 do
> total := total + i;
> od;
Assigning larger values to printlevel causes
larger amounts of information to be displayed. If printlevel is assigned two, then all statements executed within
routines, if, for, and while commands nested at a
depth less than or equal to two are displayed. At value three, all
routines, if, for, and while commands nested at a
depth less than or equal to three are displayed and so forth.
Gaston Gonnet
1998-09-15