加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Delphi 7:如何在调用堆栈中看到局部变量的值?

发布时间:2020-12-15 09:51:01 所属栏目:大数据 来源:网络整理
导读:在Delphi 7中,在调试时我可以看到当前上下文局部变量(Ctrl-Alt-L)和调用堆栈(Ctrl-Alt-S).当我将调用堆栈导航回调用方法时,我不知道如何检查调用方局部变量.可能吗? 这是我的一个古老的宠儿.我可以用我编程的所有语言来实现,但不能用Delphi实现. 解决方法
在Delphi 7中,在调试时我可以看到当前上下文局部变量(Ctrl-Alt-L)和调用堆栈(Ctrl-Alt-S).当我将调用堆栈导航回调用方法时,我不知道如何检查调用方局部变量.可能吗?

这是我的一个古老的宠儿.我可以用我编程的所有语言来实现,但不能用Delphi实现.

解决方法

您正在寻找的功能是 added to the Win32 debugger in Delphi 2005:

Delphi 2005 Reviewer’s Guide

A popular debugging feature in Delphi 8 and C# Builder is the capability to select a particular frame from the call stack using the Local Variables dialog box. This feature is now available for the Borland Win32 Debugger.

With the Borland Win32 Debugger loaded,view the Local Variables dialog box. (If this dialog box is not already visible,select View | Debug Windows | Local Variables,or press Ctrl-Alt-L,to display it.) Initially,the values of variables local to the current function that the debugger is in are shown. To view local variables in one of the methods earlier in the call chain,select the method name from the drop-down menu.

07001

在Delphi 7中,局部变量视图始终显示执行中断的函数的局部变量.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读