Setting an In Member Breakpoint | Setting an In Class Breakpoint |
Setting an In Object Breakpoint | Breakpoints Window |
Three breakpoint types apply to C++ classes
In Member | Use to check the behavior of a polymorphic operation, such as a virtual function that has different implementations for classes derived from the same base class. |
In Class | Use to check how an application uses the data type for a particular class. |
In Object | Use to check the operations applied to a specific object. In Object also works with Objective C++ classes. |
For example, suppose your program has two classes: Block and Table. Block has three member functions: pick_up, put_down, and put_on. Table also has three member functions: put_on, clear, and knock_over. Your program quits every time you put a block on either the table or another block.
If you want to investigate the block, you would put an In Class breakpoint on Block. The program is suspended every time it calls Block::pick_up, Block::put_down, or Block:put_on.
If you think the problem occurs when you put a block on top of something, you would put an In Member breakpoint on put_on. The program is suspended whenever it calls Block::put_on or Table::put_on.
If you know that a particular block is misbehaving, you would set an In Object breakpoint on a pointer to the object.