Viewing a stack dump in Smalltalk
You can view a stack dump on the workstation using the Smalltalk stack dump debugger. The stack dump debugger is a simplified version of the Smalltalk workstation debugger.
Use the stack dump debugger to investigate the state of your image at the point of error. You cannot use it to alter the state of objects within that image. The process control buttons--Into, Over, Return, and Resume--are not available. All menu items pertaining to code evaluation, such as Execute and Display, are also not available.
To view a stack dump using the stack dump debugger, do the following:
1. From the Tools menu of the System Transcript window, select Open Debugger.
2. From the Processes menu of the debugger, select Add Stack Trace.
3. Enter the name of the stack dump file.
UNIX iconViewing stack dump files generated on differing UNIX platforms
When your development image is running on UNIX, you will not be able to read stack dump files that were generated on an architecture with different endian-ness. Doing so will cause a walkback.
 
Stack dump
You can view the source code provided the snapshot and the corresponding manager library have not changed and the development image is connected to the library. If the snapshot has been lost or if the library is not the same, the stack dump debugger works, but the method source is not displayed. Follow the steps for saving the snapshot described in Packaging a Smalltalk image.
When using the stack dump debugger to browse a method that has been replaced by another method during packaging, the debugger will display the source for the original method, not the replacement method.
The qualifier <Dumped> in the printed representation of an object serves as a reminder that the object is not active within the development image; a <dumped> object is a representation of the object that existed at the time of the Smalltalk error on the target platform.
Accessing variables with the stack dump debugger
Note that although variables cannot be changed within the stack dump debugger, they can be inspected. You can access the following variables with the stack dump debugger:
Global
Pool
Class
Class instance
Accessing global variables
To access the Smalltalk dictionary from the stack dump debugger, do the following:
1. Select the first frame, EsStackDumper class>#dumpStack:.
2. Select the self pseudo variable and inspect it.
3. In the <Dumped> inspector, select the variable called globalNamespace and inspect it.
Accessing pool variables
To access a pool variable used by a particular pool dictionary, do the following:
1. In the Smalltalk dictionary inspector opened while accessing global variables, select the pool dictionary and inspect it.
2. In the pool dictionary inspector, select and inspect the pool variable.
Accessing class variables
To access a class variable from a particular class, do the following:
1. Inspect the class you want to access.
2. In the class inspector, select the classPool variable and inspect it.
3. In the dictionary inspector, select and inspect the class variable.
Accessing class instance variables
To access a class instance variable from a particular class, do the following:
1. Inspect the class you want to access.
2. In the class inspector, select the class instance variable and inspect it.
Last modified date: 05/11/2020