With few limitations, you can use Prism to debug C++ programs containing the features described in this section.
You can simply type print member to print a data member when in a class method.
You can set breakpoints using the stop in command with functions having either C or C++ linkage (mangled) names.
You can use the Prism stop in, func and list commands with methods of a class.
(prism) stop in class_name::method_name (prism) func class_name::method_name (prism) list class_name::method_name
Prism supports assignment to class member variables.
You can use the Prism whatis and print commands with variables of class type and template classes.
Prism recognizes the this identifier in C++ methods. Its value also appears in stack back-traces.
Prism allows you to set breakpoints in overloaded method names. A list pops up, from which you can select the correct method.
Prism allows you to set breakpoints in template functions. A list pops up, from which you can select the correct function.
Prism's identifier syntax recognizes the C++ scope operator, ::. For example:
(prism) whereis dummy variable: `symbol.x`symbol.cc`Symbol::print:71`dummy