Visualization Tools User's Guide


Rebuilding the Snooper

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.

  1. In a workspace, type and evaluate OrderedCollection new snoop.
  2. In the Snooper showing that collection, select the self line, and push the X := button.
  3. 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).
  4. Press the Rebuild button in the Snooper. Note that the current value of the collection appears in the Snooper.
  5. Double-click the at: 2 line to expand the Transcript.
    Rebuild Snooper window
  6. In the workspace, type and evaluate X at: 1 put: 'red fox'.
  7. Press Rebuild in the Snooper. Note that the current value of the collection appears, and that the Transcript is still expanded.
  8. In the workspace, type and evaluate
    X at: 3 put: (X at: 2). 
    X at:2 put: 'spotty cheetah'.
    
  9. 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 ]