设置数据断点
当在指定地址读取或写入数据时,数据断点会停止应用程序。
在地址处设置数据断点:
- 在Breakpoint Preset 或Breakpoints 视图中,选择上下文菜单中的Add Breakpoint 。
- 在Breakpoint type 中,选择Break on data access at fixed address 。
- 在Address 中,指定内存块的地址。
- 选择OK 。
如果地址显示在Locals 或Expressions 视图中,可以在上下文菜单中选择Add Data Breakpoint at Object's Address 来设置数据断点。
数据断点将在调试程序退出时禁用,因为下一次启动应用程序时使用的地址不太可能保持不变。如果真的希望数据断点再次激活,请手动重新启用。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.