Debugging Your Application

Debugging Functions

There are a number of debug functions that return views matching certain criteria or that print out a hierarchy of views. If you call a function that returns a view, the Inspector will also print out the slots in that view (just as it prints out the result of anything you evaluate). You can also assign the function result to a variable, and thereby have access to the view later.

The debugging functions also provide you with a key to the whole inheritance chain. You can call a function that returns a view in which you can follow the proto chain with the _proto slot, the parent chain with the _parent slot, and its children with the ChildViewFrames method. The entire inheritance structure is just a few keystrokes away.

Debug
GetView
DV

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

Last modified: 1 DEC 1996