### Other Elements

If an array, structure, or C++ class object in a monitor contains more than 50 elements, only 50 elements are displayed at a time. By default, the first 50 elements are displayed. To display a different range of elements, select Edit->Other elements (or select Other elements from the monitor popup menu), and enter the number of the first element to display.

You can change the default maximum of 50 elements to a different maximum by setting the CPP_DBG_NUMBEROFELEMENTS environment variable on the local workstation before starting the debugger.

In a C++ class object, elements are listed in declaration order, regardless of their access specifier (private, protected or public).

The 50-element limit applies to each level within an array or a C++ class object. For example, if a C++ class contains 100 member variables and the first variable is a 60-element array, the debugger displays the name of the array only (with a "+" to its left so that you can expand it) and the next 49 elements of the C++ class object. When you expand the array, the debugger displays the first 50 elements of the array, and the next 49 elements of the C++ class object. To view more elements of the array, position the pointer on the array name and select Other elements. To view more elements of the C++ class object, position the pointer on the object name and select Other elements.