The Debugging Process

Determine Where the Error Occurred

Knowing in which function the error occurred is pretty useful. To find out, use StackTrace from within the break loop. If you have more than one function with the same name (in different views), you'll need to figure out which one was executing by looking at the whole stack of functions (or use the template names provided in the stack crawl). You can then reason from the structure of the program, look at the current self, or if all else fails, rename them uniquely.


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

Last modified: 1 DEC 1996