Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何为此类的所有实例设置断点(或观察点)到类中的成员变量?
我曾尝试使用此成员变量在课堂上设置断点,但这不起作用。
您可以为 setter 和 getter 函数设置断点,如下所示
break TestClass::setVal(int) break TestClass::getVal()
请注意,我们必须指定函数接收的参数类型。
在此处查找更多详细信息