Delphi的CPU窗口说明


         CPU窗口由五个独立的区组成。每个区都以不同视角,深层次地显示运行中程序的数据。
1)   源代码+汇编区 显示的是从机器代码中反汇编出来的汇编指令。同时,在汇编指令前面,显示相应源代码。
2)   内存映射区      显示当前加载的可执行模块所访问的内存。内存默认以十六进制字节显示。
3)  堆栈区           显示程序当前的堆栈.堆栈以十六进制字长显示(32位值)
4)   寄存器区        显示CPU寄存器当前值。
5)  CPU标志区      显示CPU标志位当前值。
{============================================================}
在CPU窗口内任意位置右击,在右键菜单里获得其所在区的命令 。

如何打开CPU窗口?
在调试状态:
1)在主菜单里选择 View|Debug Windows|CPU
2)在代码编辑窗口里右击,在右键菜单里选择 Debug|View CPU ,就能打开,并使CPU窗口定位在源代码将要执行的位置。

当程序出现异常,且不能定位源代码时,CPU窗口自动弹出。
例如,当使用了DLL文件,或者Shared Object file (Linux),你的程序中却没有它们的调试信息,调试器就不能打开这些文件;又比如你把源文件放在程序并没有指明的目录里。

如何调整CPU窗口布局?
拖动各区的边界,就在窗口内能扩大或缩小区的范围,达到你合适的布局。
{==========================图示================} 
ContractedBlock.gif ExpandedBlockStart.gif 源文
The CPU window consists of five separate panes. Each pane gives you a view into a specific low-level aspect of your running application.

 Disassembly pane displays the assembly instructions that have been disassembled 
from your application's machine code. In addition, the Disassembly pane displays the original program source code above the associated assembly instructions.

  Memory Dump pane displays a memory dump of any memory accessible to the currently loaded executable module. By default, memory is displayed as hexadecimal bytes.

  Machine Stack pane displays the current contents of the program stack. By default, the stack is displayed as hexadecimal longs (32-bit values).

 CPU Registers pane displays the current values of the CPU registers.
  Flags pane displays the current values of the CPU flags.

 Right-click anywhere on the CPU window to access commands specific to the contents of the current pane.

 Opening the CPU window

 To open the CPU window anytime during a debugging session:

 Choose View|Debug Windows|CPU or right-click the Code editor and choose Debug|View CPU to open the Disassembly pane at the location of the execution point..

 The CPU window opens automatically whenever program execution stops at a location for which source code is unavailable. For example, the debugger cannot open the source file if you link a DLL (Windows) or shared object file (Linux) built with debug information but do not include its source file in your project, or if you place the source file in a directory not specified in your project.

 Resizing the CPU window panes



转载于:https://www.cnblogs.com/tulater/archive/2008/10/26/1319700.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值