3.8.3. Using the Class View window

You can use the Class View window to view the class structure of your C++ program. Classes are displayed in an outline format that allows you to navigate through the hierarchy to display the member functions for each class. A special branch of the hierarchy called Global displays global functions.

You can also use the Class View window to view function code and set breakpoints for a class.

Displaying the Class View window

Follow these steps to open the Class View window:

  1. Select View Classes from the C++ menu, or click on the View Classes button in the toolbar. A Class View window is displayed that shows the class hierarchy of your C++ program. Figure 3.22 shows an example of the Class View window.

Figure 3.22. The Class View window

The Class View window

Viewing code from the Class View window

Follow these steps to view the source code for a class:

  1. Display the Class View window.

  2. Click the right mouse button on a member function. A Class View window menu is displayed (Figure 3.23).

    Figure 3.23. The Class View window menu

    The Class View window menu
  3. Select View Source from the Class View window menu to display the source code for the function.

    Note

    You can also double click the left mouse button on a member function to display the function source.

  4. Select Set or Edit Breakpoint... from the Execute menu if you want to add a breakpoint within the code you are viewing. Refer to the next section for information on how to set a breakpoint at function entry.

Setting and clearing breakpoints from the Class View window

Follow these steps to toggle a breakpoint that will halt the program when the source for a class or function is entered:

  1. Display the Class View window.

  2. Click the right mouse button on a member function. A Class View window menu is displayed (Figure 3.23).

  3. Select Toggle Breakpoint from the Class View window menu to set a breakpoint, or unset an existing breakpoint. Breakpoints are indicated by a red dot to the left of the function in the Class View window.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential