Using SoftBench Debugger

Debugging C++ Programs

Member functions: Breakpoints can be set on specific member functions. You can also call a member function directly from the "()" input box.

Object identification: SoftBench Debugger recognizes whether a specified object pointer is a pointer to a declared class or a specific derived class.

Instance breakpoints: You can set a breakpoint at a member function for a particular instance of a class. This reduces the number of member function breakpoints SoftBench Debugger encounters and reduces the time it takes to debug.

Nested classes: Provide the ability for command-line references to

 

static members and functions of a nested class to

 

resolve properly.

Print:

Prints current data member values for C++ classes and

 

class inheritance hierarchies.

Exception handling Provides these features:

Ability to set breakpoints immediately prior to any exception throw.

Notification of pending throw.

Ability to set breakpoints in catch clauses.

Notification of catch.

Single step from throw into catch clause.

Parameterized types (Templates): Provides these features:

Allow references to a class-template or class-template expansion.

Set breakpoints in any or all class-template member functions.

Allow references to a function-template or function-template expansion.

Set breakpoints at any location in a function-template.

Set breakpoints at any location in an expansion of a function-template.

Print the definition of any class template or expansion.

224

Chapter 7