虽然本章只重点介绍了调试 C++ 的两个特定方面,但您在调试 C++ 程序时可使用 dbx 的全部功能。可以使用的功能包括:
查找类和类型的定义(请参见查找类型和类的定义)
打印或显示继承的数据成员(请参见打印 C++ 指针)
查找有关对象指针的动态信息(请参见打印 C++ 指针)
调试虚函数(请参见调用函数)
使用运行时类型信息(请参见打印变量、表达式或标识符的值)
在类的所有成员函数中设置断点(请参见在类的所有成员函数中设置断点)
在所有重载的成员函数中设置断点(请参见在不同类的成员函数中设置断点)
在所有重载的非成员函数中设置断点(请参见在非成员函数中设置多个断点)
在特定对象的所有成员函数中设置断点(请参见在对象中设置断点)
处理重载函数或数据成员(请参见在函数中设置 stop 断点)