Gotchas with Tracing

Turning Tracing Off

When tracing is on, copious amounts of information print out in the Inspector. So much prints out that you probably cannot type in trace := nil and execute it as one line before the Inspector spews forth some data in the middle of your attempt. What's an honest programmer to do? Cheat, of course. NTK provides a button in the Inspector that sends trace := nil to the Newton (see FIGURE 8.5).

Another alternative is to append a trace := nil statement at the end of the code you want to trace. Once that gets executed, tracing will stop.

FIGURE 8.5 : Turning tracing off in the Inspector window.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996