查看和编辑寄存器状态

机器代码由机器语言指令组成,这些指令可使 CPU 对寄存器或内存中的数据单元执行加载或存储等任务。

Registers 视图显示通用和专用 CPU 寄存器的当前状态。可用寄存器取决于 CPU 类型。

登记册视图

应用程序停止时,可以查看寄存器值。双击寄存器值可对其进行编辑。

最近更改的寄存器值用红色高亮显示。空寄存器值和前导零则显示为灰色。

右键单击列标题可显示或隐藏视图中的NameValue 列。

右键单击视图可选择以下操作:

默认情况下,Registers 视图是隐藏的。要显示该视图,请在调试器工具栏的Views 中选择该视图。

检查内存

您可以检查多种格式的内存,与应用程序的数据类型无关。

要打开内存编辑器,请选择Registers 视图中的一个值,然后在上下文菜单中选择Open Memory Editor at <value>Open Memory View at <value>

内存编辑器

将鼠标指针悬停在数值上,以工具提示的形式查看详细信息。

右键单击数值:

  • 以 ASCII 或十六进制格式复制选区。
  • 在选区上设置数据断点。
  • 跳转到当前数据视图或新视图中的选定地址。

另请参阅 "如何调试: 调试"、"调试"、"调试器"和 "调试器"。

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.