![]() |
![]() ![]() |
Work with Threads![]() |
A large popup label for the variable (an instance of QuickMenu) appears.
The Data card displays the object this (an instance of the QuickMenu applet class) in the Data card as a table of variables and values.
You can view variables in different ways. For example, you can view an object's type as well as its structure.
The display now shows that the variable this is an object of type QuickMenu.
You can view the values of any variables as you step through source code or stop at different breakpoints.
Notice that the right column of the table displays the values of menuwidth and i.
You have created a copy of the Data card. This is useful when you want to track events in two cards at the same time. For example, you might want to view the callstack and variable values at the same time.
Notice the callstack values for the current stopped thread, applet-QuickMenu.class.
The variable values on the Data card change as you step. The Callstack card updates to show the line number for the most recently executed line in the init method.
You can now delete the breakpoint you created and rerun the fixed applet.
Now the menu outline should be the correct width.
![]() |
![]() ![]() |
Work with Threads![]() |
Guide to the Cosmo Code Development Environment
12-96*161