Revision 1 of 2, by WikiArchive on 11-4-2026. The page as it is now.
IDE Window: Local Variables
Contents
- 1 Navigation
- 2 Important
- 3 Local variables
- 4 Data displayed
- 5 Scope (Stackframe, Thread, History)
- 6 See also
Navigation
Main Menu > View > Debug Windows > Local Variables
Important
You must setup the debugger and start the project to debug it. Only then this window will be useful.
Local variables
This is the list of the local variables and their current values of the current function/procedure.
Data displayed
Name The mangled name of the variable. Normally the compiler converts the Pascal identifier to uppercase. You will see local variables only if the procedure was compiled with debugging information. Values The current value of the local variable.
Note: The values are shown in a very basic form. e.g Objects are shown as pointer, instead of structure. You may get more information by adding a variable to the Watches window.
Scope (Stackframe, Thread, History)
The values are evaluated according to the scope set in the Thread and Call Stack dialogs. Default is the current Thread and top stack frame. Both (Stack and Frame) dialogs offer to change the "current" Frame/Thread. The Watches window will follow this selection.
It is also possible to select previously displayed values, using the History dialog.
See also
From the Free Pascal wiki, page "IDE Window: Local Variables", as the Internet Archive kept it on 2025-01-14. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

