gpt4 book ai didi

德尔福7 : how to see the value of local variables upper in the call stack?

转载 作者:行者123 更新时间:2023-12-03 15:02:09 24 4
gpt4 key购买 nike

在 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.


(source: embarcadero.com)

<小时/>

在 Delphi 7 中,局部变量 View 始终显示执行中断的函数的局部变量。

关于德尔福7 : how to see the value of local variables upper in the call stack?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8701815/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com