Product Information > JADE Development Environment User’s Guide > Chapter 7 - Using the JADE Debugger > Inspecting Values Using the Debugger

Inspecting Values Using the Debugger

Use the Inspect command from the Variables menu to display the value of a primitive item or to inspect an item containing an object reference.

To inspect the value of an item

  1. Specify the selected item, by performing one of the following actions.

    The Inspect Variable dialog is then displayed.

  2. In the Variable Name text box, specify the item to be inspected.

  3. Click the OK button.

If the item being inspected contains an object reference, an Inspector window is opened for that object. For details, see "Inspecting an Object Reference", later in this chapter.

You can also display the bubble help containing the current value of a local variable in a line of code in the Method Source window, by positioning the cursor over the local variable whose value you want displayed. However, inspection of properties from within the JADE debugger may fail if a user mapping method performs actions not suitable for situations where the execution of the user application is suspended; for example, the creation and display of a form, showing a form modally, display of a message box, deletion of an object in use by the current call stack, and so on.

For details about the circumstances under which bubble help is displayed by default, see "Displaying Code in the Method Source Window", earlier in this chapter.

If the item being inspected contains a primitive type, an invalid object reference, or a null object reference, or you right-click in the Local Variables window and then select the Inspect command from the popup (context) menu that is displayed, the Variable Inspector dialog, shown in the following diagram, is then displayed.

You can scroll the Value text box to view a long string or binary value, if required.

To modify the value of the variable if it is a primitive type other than Any

The Modify Variable dialog is then displayed. For details, see "Modifying a Value Using the Debugger", later in this chapter.