Viewing Threads and Stack Frames
Using the Threads/Stack tab you can view the threads in a thread group, the stack frames in a thread, the variables local to each stack frame, and the variables embedded within objects and arrays. Use the Threads/Stack tab to keep track of the value of a variable while you step through your code.
To view the thread groups in your project:
- Open the Threads/Stack tab in the Debugger.
The Threads/Stack tab lists the all thread groups in your project, including the system thread groups.
- Click the

glyph to the left of the thread group.
The Java WorkShop expands the thread group to show the threads that make up the thread group.
- Continue clicking the glyphs on the left until you reach the variables in a stack frame.
- Click a glyph a second time to contract the item.
Notes
- If a stack frame does not have local variables, try recompiling your program with the -g option.
- Applets run in multiple threads. For example, the init, start, and stop methods run under one thread, while paint and handleEvents run under another (AWT-Motif on Solaris(tm) computing environments and AWT-CallBack-Win32 on Windows NT or Windows 95).
See also:
- Threads/Stack Tab