Showing a Stack Trace
StackTrace()
while in a break loop. The error-generating action was tapping a button:
(#6008D281).MethodD():15 (#6008D281).MethodC(param1InC=3, param2InC=25):3 (#6008D281).MethodB(param1InB="hello"):9 (#6008D281).buttonClickScript():4 1444304.viewClickScript(18205701):10The first entry is the most recent function (the one that caused the Newton to enter the break loop) and is designated stack level 0. The last entry is the bottom function on the stack. Thus, in the previous stack trace, you can see that the
viewClickScript
(stack level 4) called buttonClickScript
(stack level 3) called MethodB
(stack level 2) called MethodC
(stack level 1) called MethodD
(stack level 0).Notice that parameter values are printed as part of the stack trace.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996