Set a Class Instance Breakpoint

You can set an instance breakpoint on an instance of a class, so that execution stops each time a member function is called for that instance, from any view that displays the value of the class instance. This includes the local variables view and any details view of the instance. When you set an instance breakpoint, a breakpoint is set for each method of the instance's class, including constructors and the destructor, but the breakpoint only applies to that particular instance of the class (that is, the breakpoint only applies to the method when it is called for that particular instance).

To set an instance breakpoint from a source view, follow these steps:

  1. Position the pointer over the class instance you want to set a breakpoint on, and click mouse button 2. Follow the object on the popup menu to the cascading menu, and select Show Variable Value.
  2. In the resulting view of the class instance, click mouse button 2 over the address field.
  3. From the resulting popup menu, select Set Instance Breakpoint.

If the instance is already visible in a local variables view, follow these steps:

  1. In the local variables view, position the pointer over the or icon, or the equals sign (=), for the class instance .
  2. From the resulting popup menu, select Set Instance Breakpoint.


Types of Breakpoints


Enable, Disable, or Delete Breakpoints from a Breakpoints View