Every trace print should show:
- The name of the function that contains the print;
- An indication of where the trace occurs;
- An indication of what the values being shown represent, if any values are shown;
- Values being shown, if any;
- A newline, if appropriate, so that trace prints are not run together on the same line.
For example, a trace print that occurs at the beginning of a loop body
in function getCompatibility might look like the following.
if(trace > 0)
{
printf("getCompatibility: [top of loop] working on k = %i\n", k);
}
|