Search VisualAge for Java Information Go to Information Home Page Go to VisualAge for Java WWW Site

Monitors pane

The behavior of the Monitors pane changes depending on the platform running the program you are debugging. Select the appropriate platform:

 

ngaix.gif (307 bytes)ngwin.gif (301 bytes) Monitors pane

Use the Monitors pane to view registers, variables or expressions that you have chosen to monitor. Only variables that are in scope can be added to the Monitors pane or used in expressions you add to the Monitors pane.

ngjava.gif (312 bytes) You can not view registers in the Monitors pane when debugging interpreted Java programs

If an element in the Monitors pane has subelements, such as an array or a class, that element can be expanded to display the subelements.

You can enable or disable the monitoring of expressions, registers, and variables. When disabled, the value displayed does not change during program execution even though the actual value of the expression, register, or variable has changed. Enabled variables, expressions and registers are indicated with a red diamond (nbenvar.gif (91 bytes)). Disabled expressions, registers, and variables are indicated with a gray diamond (nbdisvar.gif (76 bytes)).

A pop-up menu option lets you edit the contents of variables or registers. If you try to change the value of an expression, the Distributed Debugger will display an error message.

Other pop-up menu options let you delete an expression, register, or variable from the Monitors pane and change the representation of an expression, register, or variable.

ngclang.gif (151 bytes) ngcpp.gif (202 bytes) Expressions, registers and variables that evaluate to valid addresses (for example, pointers) can also be added to the Monitors pane. They are indicated with an arrow (nbenptr.gif (101 bytes)) in the list of expressions, registers, and variables monitored. These entries can be dereferenced using a pop-up menu option.

ngclang.gif (151 bytes)ngcpp.gif (202 bytes) The contents of expressions, registers and variables that evaluate to addresses cannot be changed. Only the dereferenced value of the expressions, registers and variables can be changed.

 

ngos400.gif (278 bytes) Monitors pane

Use the Monitors pane to view variables or expressions that you have chosen to monitor. Only variables in scope will display the correct value.

If an element in the Monitors pane has subelements, such as an array or a class, that element can be expanded to display the subelements.

You can enable or disable the monitoring of expressions and variables. When disabled, the value displayed does not change during program execution even though the actual value of the expression or variable has changed. Enabled variables and expressions are indicated with a red diamond (nbenvar.gif (91 bytes)). Disabled expressions and variables are indicated with a gray diamond (nbdisvar.gif (76 bytes)).

A pop-up menu option lets you edit the contents of variables. If you try to change the value of an expression, the Distributed Debugger will display an error message. The contents of expressions and variables that evaluate to addresses cannot be changed. Only the dereferenced value of the expressions and variables can be changed.

Other pop-up menu options let you delete an expression or variable from the Monitors pane and change the representation of an expression or variable.

ngclang.gif (151 bytes)ngcpp.gif (202 bytes) Expressions and variables that evaluate to valid addresses (for example, pointers) can also be added to the Monitors pane. They are indicated with an arrow (nbenptr.gif (101 bytes)) in the list of expressions and variables monitored. These entries can be dereferenced using a pop-up menu option.

Java references are also indicated with an arrow (nbenptr.gif (101 bytes)). They can be dereferenced to display the contents of the object.

 

ng390.gif (283 bytes) Monitors pane

Use the Monitors pane to view registers, variables, or expressions that you have chosen to monitor.Only variables that are in scope can be added to the Monitors pane or used in expressions you add to the Monitors pane.

ngjava.gif (312 bytes) You can not view registers in the Monitors pane when debugging interpreted Java programs

If an element in the Monitors pane has subelements, such as an array or a class, that element can be expanded to display the subelements.

You can enable or disable the monitoring of expressions, registers, and variables. When disabled, the value displayed does not change during program execution even though the actual value of the expression, register, or variable has changed. Enabled variables, expressions and registers are indicated with a red diamond (nbenvar.gif (91 bytes)). Disabled expressions, registers, and variables are indicated with a gray diamond (nbdisvar.gif (76 bytes)).

A pop-up menu option lets you edit the contents of variables or registers. If you try to change the value of an expression, the Distributed Debugger will display an error message.

Another pop-up menu option lets you display the contents of a selected storage block according to a user-defined layout specified in an XML file. This pop-menu option is not available when debugging interpreted Java programs.

Other pop-up menu options let you delete an expression, register, or variable from the Monitors pane and change the representation of an expression, register, or variable.

ngclang.gif (151 bytes) ngcpp.gif (202 bytes) Expressions, registers and variables that evaluate to valid addresses (for example, pointers) can also be added to the Monitors pane. They are indicated with an arrow (nbenptr.gif (101 bytes)) in the list of expressions, registers, and variables monitored. These entries can be dereferenced using a pop-up menu option.

ngclang.gif (151 bytes)ngcpp.gif (202 bytes) The contents of expressions, registers and variables that evaluate to addresses cannot be changed. Only the dereferenced value of the expressions, registers and variables can be changed.