Using SoftBench Debugger
Debugging C++ Programs
Using Breakpoints for Exception HandlingSee “Handling Signals and Events” on page 214 for a description of intercepts.
Accessing Inherited C++ ValuesC++ objects can inherit variables and member functions from other classes. SoftBench Debugger allows you to specify whether inherited member functions and variables should be included in certain operations.
Choosing "Options: C++ Settings…" displays the C++ "Options" dialog box. The settings in this dialog box specify how many "levels" of inheritance should be affected by the respective operations.
The breakpoint, trace, and watchpoint settings affect inherited members in classes, instances, and templates. If you select "■ All", the monitor affects all members in an object regardless of the source of inheritance. If you select "■ Count", only the specified number of "levels" are affected.
For example, if you set the count to 0, the monitor affects only the first "level" of inheritance. This means SoftBench Debugger sets the monitor only on local
You can use the "Print" setting when printing an object. If you select
"■ All", SoftBench Debugger prints all component variables, regardless of the source of inheritance. If you set the count to 1, SoftBench Debugger prints the object's local variables and any variables inherited from one level of "ancestor".
Debugging Static ConstructorsWhen you load a program for debugging, SoftBench Debugger begins executing it and pauses at the first line of main(). This is ideal for most debugging situations.
Chapter 7 | 225 |