Visualization Tools User's Guide


Snooping as a Debugging Aid

It is often helpful to put snoop commands in programs that you are trying to debug. The Snooper provides a few features to assist with that.

The Snooper also records the stack trace, and allows you to browse any of the last dozen or so methods called before the Snooper was invoked.

  1. From Actions select Show Stack Trace.
  2. A Stack Trace window pops up, showing the names of the last several methods called. Usually one or two methods from SpyInspector class -- that is, from the Snooper itself -- are at the top of the list, and your method is second or third.
  3. Double-clicking a line of the Stack Trace window opens a browser on that method.


[ Top of Page | Previous Page | Next Page | Table of Contents ]