Debugging a Program With dbx

Setting Breakpoints in Member Functions of Same Class

To set a breakpoint in all member functions of a specific class, use the stop inclass command.

To set a when breakpoint, use when inclass.

To set a breakpoint in all member functions of the class draw:


(dbx) stop inclass draw

Breakpoints are inserted in only the class member functions defined in the class. It does not include those that it may inherit from base classes.

Due to the large number of breakpoints that may be inserted by stop inclass and other breakpoint selections, you should be sure to set your dbxenv step_events to on to speed up step and next.