IDE Window: Local Variables

From Lazarus wiki
Jump to navigationJump to search

Deutsch (de) English (en) français (fr) русский (ru)

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

Local Variables 2 0 10.jpg

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