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
    评论
Delphi是一种非常流行的编程语言,用于开发Windows平台上的应用程序。在Delphi中,我们可以使用TForm组件创建窗体,然后通过编写代码来实现各种功能。 在开发过程中,经常会遇到需要显示等待窗口的场景。等待窗口通常用于在长时间的操作中向用户提示正在处理,并防止用户过早的关闭或终止操作。 在Delphi中,我们可以使用TForm组件来实现等待窗口。首先,在设计时,我们需要创建一个新的窗体,设置其属性如标题、大小等。 然后,我们可以在窗体的OnCreate事件中添加一些代码来实现等待窗口的逻辑。比如,可以在OnCreate事件中添加一个旋转的进度条控件,并设置其可见性为True,从而显示等待效果。 在长时间的操作开始之前,我们可以使用窗体的Show方法来显示等待窗口。随后,我们可以执行长时间的操作。 在长时间的操作完成后,我们可以通过调用等待窗口的Close方法将其关闭,并让主窗体恢复响应。可以在等待窗口的OnClose事件中添加一些代码来做一些清理工作。 此外,我们还可以通过设置等待窗口的ShowModal方法来设定其显示方式为模态,即阻止用户对主窗体的操作,直到等待窗口关闭。 总之,Delphi提供了很多实现等待窗口的方法和技巧,我们可以根据具体需求来选择合适的方式,并通过编写代码实现。等待窗口可以使我们的应用程序更加友好和高效。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值