Inspect Manual
Inspect Manual—429164-006
9-1
9 Using Inspect With C++
Starting to Debug a C++ Program on page 9-1
Scope Units and Scope Paths on page 9-1
Code Locations on page 9-2
Data Locations on page 9-5
Expressions on page 9-7
C++ Data Types and Inspect on page 9-8
Inspect Enhancements and Restrictions for C++ on page 9-9
Command Usage Guidelines for C++ Programmers on page 9-13
Starting to Debug a C++ Program
When you start a C++ program, the C++ library performs certain start-up operations
before your program begins executing. To execute the start-up code and get to your
program, set a breakpoint in your program then resume execution; for example:
Scope Units and Scope Paths
C++ has three types of scope units: function, class, and object, of which, Inspect
supports only functions. When debugging a program written in C++, you must specify
a function name whenever an Inspect command expects a scope unit.
Here is the syntax you use to identify C++ scope paths in Inspect.
-COBJ- BREAK #main
-COBJ- RESUME
scope-path:
#function
Note. The class name is included in the member function.