Examining Objects

In the Source panel:

  1. Make sure your program was compiled using javac -g. You must use the -g flag to get symbol information.

  2. Make sure your program is running and stopped at a breakpoint, with the object you want to examine within scope (known to the program at this point in execution).

  3. Make sure the file containing the symbol you want to evaluate is displayed.

    If the file containing the symbol you want to evaluate is not displayed, choose File > Open... to open the file.

    Note: File > Open is not available until you open a project. Do this by double-clicking any project in the Project card.

  4. Select the object.

    The object handle and information about the object's variables are displayed in a popup label. The popup label is displayed until you move the cursor.

    Note: To switch off symbol evaluation mode in the Source panel, choose File > Preferences... and set the Displayed Delayed Popup Help preference in the Source preferences.

  5. Click the Examine button.

    The object is displayed in a table in the Data card. You can examine the values of the variables in more detail by double-clicking them, or you can change the view of the object using the option menu above the display panel.

  6. To view the value of the same object each time a breakpoint is reached or a thread is explicitly suspended, add the expression to the Expression View table by clicking Add when the expression is displayed in the Data card.

-or-

In the Data card:

See Also

Guide to the Cosmo Code Development Environment
12-96*233