# Context

Context inherits from Object and defines instance variables stackIndex, receiverClass, selector. It has no subclasses.

Context objects are used mainly for debugging. They are not true Contexts as in other Smalltalks, but instead simply encapsulate a stack frame index and provide some useful utility methods.
The method Context class>>#textOfSelector: provides the only way to get the text of a symbol at runtime. It is only available, however, if the virtual machine has been compiled with debugging support, and if debugging information has been generated by the IDE.

## Methods defined in Context:

### Methods for accessing:

- localVariableDescriptions
- receiver
- slotCount

### Methods for initialization:

- stackIndex: index receiverClass: mclass selector: string

### Methods for printing:

- displayOn: stream

Pocket Smalltalk Documentation