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
Specify the selected item, by performing one of the following actions.
Click on the item in the method source window, and then click in the Inspect toolbar button or press Ctrl+I.
The Inspector form is then displayed; that is, the Variable Inspector dialog is not displayed first.
Select the Inspect command from the Variables menu.
Click on the Inspect toolbar button.
Press Ctrl+I.
The Inspect Variable dialog is then displayed.
In the Variable Name text box, specify the item to be inspected.
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 image, 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
Click the Modify button in the Variable Inspector dialog.
Right-click in the Local Variables window and then select the Modify command from the popup (context) menu that is displayed.
The Modify Variable dialog is then displayed. For details, see "Modifying a Value Using the Debugger", later in this chapter.