Setting the representation of monitor contents

You can change the representation of variables and expressions in the Monitors and Variables views, and you can set the current representation of a variable or expression to be the default for it.

About this task

By default, the representation of IBM® i Java™ or C/C++ data types that are displayed in the debugger are as follows:

Data type Default representation
character character
float float
integer integer
pointer hexadecimal pointer
array array
Java character array array
C/C++ character array string
aggregate user default
const system default

The default representation for languages other than Java and C/C++ is the system default.

To change the representation of a variable or expression:

Procedure

  1. Right-click the variable or expression for which you want to change the representation.
  2. Select Change Representation from the pop-up menu.
  3. Select the desired representation. Available representations vary depending on programming language and variable type. The current representation will have a check mark beside it.

Results

The ability to set the default representation for a variable or expression varies depending on the operating system on which the program you are debugging is running. If supported by the debug engine, you can set the current representation to default as follows:

  1. Ensure that you have set the variable or expression to the desired representation, by following the above steps.
  2. Right-click the variable or expression and select Change Representation > Set default representation from the pop-up menu.

The default representation of the variable or expression will be used for subsequent debug sessions of the application.


Feedback