Recent

Author Topic: Global Variables  (Read 194 times)

kequheki

  • Newbie
  • Posts: 1
Global Variables
« on: December 13, 2019, 04:23:25 am »
Hello,
In the debugger I can select View>Debug Widow>Local Variables
How do you view Global Variables?
Thanks  ;)

440bx

  • Hero Member
  • *****
  • Posts: 1406
Re: Global Variables
« Reply #1 on: December 13, 2019, 05:05:51 am »
There are a few ways, the ones that come to mind are:

1. Using "Evaluate/Modify"
2. Using "Inspect"
3. Using "Add Watch"

You can access all those options by right clicking on the variable and going to the "Debug" option in the popup menu.

HTH.

ETA: some of those options are also available in View->Debug windows
« Last Edit: December 13, 2019, 05:12:53 am by 440bx »
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.