IDE Window: Local Variables

From Lazarus wiki
Revision as of 18:04, 1 July 2015 by FTurtle (talk | contribs)
Jump to navigationJump to search

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

Important

You must setup the debugger and start the project to debug it. Only then this window will be useful.

Local variables

Locals.png

This is the list of the local variables and its current values of the current function/procedure.

Data displayed

Name
The mangled name of the variable. Normally the compiler converts 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 watch list

Scope (Stackframe, Thread, History)

The values are evaluated according to the scope set in the Thread and Stack dialog. Default is the current Thread and top stack frame. Both (Stack and Frame) dialog offer to change the "current" Frame/Thread. The watch window will follow this selection.

It is also possible to select previously displayed values, using the History dialog.

See Also