Defined as part of the language, NetRexx tracing often provides useful debugging information. The flow of execution of programs may be traced, and the execution trace can be viewed as it occurs or redirected to a file. The trace can show each clause as it is executed, and optionally show the results of expressions, etc. For example, the program:
trace results number=1/7 parse number before '.' after swapped=after'.'before
would result in the trace:
2 *=* number=1/7 >>> "0.142857143" 3 *=* parse number before '.' after >p> before "0" >p> after "142857143" 4 *=* swapped=after'.'before >>> "142857143.0"
where the lines marked with '*=*' are the statements in the program, lines with '>>>' show expression results, and lines with '>p>' show variables set by the PARSE instruction.
[ previous section | contents | next section ]
From 'nrover.doc', version 0.75.
Copyright(c) IBM Corporation, 1996. All rights reserved. ©