12.10. Setting a breakpoint on a specific instance of a C++ class

You can set a breakpoint that activates when a specific instance of C++ class is accessed.

To set a breakpoint that activates for a C++ this object:

  1. Position the cursor at a point in your source after the object is defined.

  2. Right-click on the line of source to display the context menu.

  3. Select Run to Here from the context menu to run to the current line of source.

  4. Open the Create Breakpoint or Edit Breakpoint dialog box as appropriate.

  5. Click More... on the breakpoint dialog box you are using. The breakpoint behavior controls are displayed. Figure 12.14 shows an example.

  6. Click Add in the Conditions group. The Add Condition dialog box is displayed, shown in Figure 12.15.

  7. Select the C++ Object condition.

  8. Enter the instance of the C++ class to test.

  9. Click OK to close the Add Condition dialog box. The condition is added to the breakpoint conditions list.

  10. Click OK to set the conditional breakpoint and close the breakpoint dialog box you are using.

    The breakpoint is identified by a yellow disc.

See also:

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0153K
Non-Confidential