Delphi 7: how to see the value of local variables in the call stack?

In Delphi 7, during debugging, I see the current contextual local variables (Ctrl-Alt-L) and the call stack (Ctrl-Alt-S). When I move the call stack back to the methods of the caller, I do not know how to check the local variables of the caller. Is it possible?

This is my old pet. I can do this in all languages ​​that I programmed, but not in Delphi.

+6
source share
1 answer

The function you were looking for was added to the Win32 debugger in Delphi 2005 :

Delphi 2005 Reviewer Guide

...

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

After loading the Borland Win32 debugger, open the Local Variables dialog box. (If this dialog box is not yet displayed, select View | Debug Windows | Local Variables or press Ctrl-Alt-L to display it.) Initially, the values ​​of the variables local to the current function in which the debugger is located are displayed. 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 )


In Delphi 7, the representation of local variables always shows local variables for the function in which execution was interrupted.

+2
source

Source: https://habr.com/ru/post/904908/


All Articles