Visualization Tools User's Guide
Occasionally, objects that you are snooping may get updated, without
the Snooper being aware of the fact. The Rebuild button
brings the Snooper back up to date, and attempts to keep the display in the
same configuration as much as possible. That is, the Snooper attempts
to keep the same parts of the object hierarchy expanded, as long as they still
exist when the rebuild is done.
In this example, you will create an OrderedCollection and snoop it while it
is being modified.
- In a workspace, type and evaluate OrderedCollection new
snoop.
- In the Snooper showing that collection, select the self line,
and push the X := button.
- In a workspace, type and evaluate X add: 1; add:
Transcript; add: 3. (The values displayed in the
Snooper might not change at this point).
- Press the Rebuild button in the Snooper. Note that the
current value of the collection appears in the Snooper.
- Double-click the at: 2 line to expand the
Transcript.

- In the workspace, type and evaluate X at: 1 put:
'red fox'.
- Press Rebuild in the Snooper. Note that the current
value of the collection appears, and that the Transcript is still
expanded.
- In the workspace, type and evaluate
X at: 3 put: (X at: 2).
X at:2 put: 'spotty cheetah'.
- Press the Rebuild button. Note that none of the elements
of the list are expanded; it changed too much to keep it expanded.
.
[ Top of Page | Previous Page | Next Page | Table of Contents ]