This file contains various tips for use with the Smalltalk Professional Debug package.

Execution Tracing

The following code will create a stack trace of the last "8" message sends.
Copy it to the watch expression of a watch probe to create the stack trace.
This code is also contained in the file WATCHLIB.ST.

| ctx i stream |
i := 8.
ctx := DOITCONTEXT.
stream := WriteStream on: (String new: 200).
[i = 0 or: [ctx == nil]]
	whileFalse:
		[ctx printOn: stream.
		stream cr.
		ctx := ctx sender.
		i := i - 1].
^stream contents
