Adding an expression or variable to the Memory Rendering view

You can add an expression or variable to a memory monitor in the Memory Rendering view from the editor, from the Variables view, or directly from the Memory Rendering view.

About this task

Alternatively, you can monitor an expression or variable in the Memory Rendering view in conjunction with a memory monitoring in the Memory view.

To add a memory monitor from within the Memory Rendering view:

Procedure

  1. In the Memory Rendering view, click the Add Memory Rendering button or choose the Add Memory Rendering pop-up menu item.
    Note: The Add Memory Rendering pop-up menu item is only available when there are no memory monitors in the Memory Rendering view.
  2. In the Add Memory Rendering dialog box, click the Add New button.
  3. In the Monitor Memory dialog box, enter the expression or variable in the field (this entry does not need to be case-sensitive) or, if you have previously monitored the expression or variable when debugging this application, choose it from the pull-down list.
  4. Click OK to return to the Add Memory Rendering dialog box.
  5. Do one of the following:
    1. In the Add Memory Rendering dialog box, select the data format that you would like to use for the memory rendering and then click OK.
    2. Click Cancel in the Add Memory Rendering dialog box to return to the Memory Rendering view. The view will be populated with the memory rendering selection list. From this list, select the data format that you would like to use for the memory rendering and then click Add Rendering(s).

Results

To add a memory monitor from the editor:

  1. In the editor, highlight and right-click the expression that you want to monitor.
  2. Select Monitor Memory > any_memory_rendering_format from the pop-up menu (where any_memory_rendering_format is a rendering format such as ASCII, EBCDIC, signed integer, or unsigned integer). For IBM® i, use EBCDIC. To switch to EBCDIC, right-click on the tab for your expression and select Representation > EBCDIC.

You can set the default so that all expressions added into the Memory Rendering view use EBCDIC representation. To do this, right-click on the Expression tab and select Representation > Set Default > EBCDIC.

To render memory when monitoring memory in the Memory view, add the variable or expression to the Memory view. This will automatically cause the Memory Rendering view to be populated with the memory rendering selection list for the variable or expression. From this list, select the data format that you would like to use for the memory rendering and then click Add Rendering(s).


Feedback