Debug Data lazarus / 31-LCL ---------------------------------------------------------------------- g0wxg0 · 2017-12-29 01:32 I upgraded and now when I hover an array in debug mode, I don't see the array data. Is there an option to enable this or am I doing something wrong? ---------------------------------------------------------------------- Handoko · 2017-12-29 06:32 On what OS, what Lazarus version? How did you do it? Any screenshot? Please provide more information. It even better if you can send us the source code especially the project file. It could be something wrong in the project settings or Lazarus settings. On my simple test, it works correctly on Lazarus 1.8.0 Linux 64-bit Gtk 2. ---------------------------------------------------------------------- g0wxg0 · 2017-12-29 12:23 It shows no data in the array. ---------------------------------------------------------------------- g0wxg0 · 2017-12-29 12:35 Forgot to mentions, running it on windows 10. Upgraded to Lazarus Release 1.8 (with FPC 3.0.4) 64 bit, it was working fine before upgrade. I was using Lazarus 1.6.4 32 bit before. ---------------------------------------------------------------------- Martin_fr · 2017-12-29 12:36 1) Is this a static array or dynamic (SetLength) ? 2) Try using stabs or dwarf debug info (Project options / Debugging). If you change this, you may also have to change it for any package that has debug info (such as the LCL / you may use "Additions and overrides) - "dwarf (with sets)" may be better - dwarf 3 works for some, but may crash for others. 3) check your setup http://wiki.freepascal.org/Debugger_Setup 4) If none works: provide a log, and other info (gdb version, OS...) http://wiki.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_sessio n ----- Also: While it should work in the hint, check if it works or fails in the watches window. ---------------------------------------------------------------------- g0wxg0 · 2017-12-29 12:50 Will try that later, but I just tried it on another program I'm also working on (I have two instances of LCL up) and it does display the array data there. I think I tried dwarf debug already. Not that familiar with other options, mostly using it "out of the box". Master is a static array. Type MasterA               = array[1..250] of Player; var Master                  : MasterA; ---------------------------------------------------------------------- g0wxg0 · 2017-12-29 19:21 Attached is the debug log file. Running Windows 10 64bit. Laz 1.8.0 FPC 2.0.4 Optimization 1. ---------------------------------------------------------------------- Martin_fr · 2017-12-29 19:50 Not sure if the problem is in fpc or gdb.... Here is what seems to happen: GDB thinks that Master is of type: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type = array [1..-6] of Player An array 0..250 needs a byte sized index (unsigned of course) But at some stage (either fpc or gdb, I do not know) the "unsigned" info is lost. Then 250 becomes the signed value -6. But an array 1..-6 is empty (for gdb). ------------------ I tested on Linux 64 bit with gdb 8.0, and this works (i.e. it sees the unsigned 250). That may indicate it is an issue with older gdb. I am not sure if Lazarus 1.8 win 64 is shipped with gdb 7.3.5 or newer. If it is 7.3.5, then try https://sourceforge.net/projects/lazarus/file s/Lazarus%20Windows%2064%20bits/Alternative%20GDB/ Otherwise if you can get hold of a newer version try that. --------------- Other workarounds. If gdb sees 1..-6 then the hint will not work. But in the watch window you can enter: Master[1]  and set the "repeat count" (watch properties) to 10 or 250, depending how many values you need. (Note 250 may be real slow) ---------------------------------------------------------------------- g0wxg0 · 2017-12-29 20:06 Downloaded gdb 7.7 and now it's working. Thank you.