Memory - hex dumps lazarus / 12-Debugger ---------------------------------------------------------------------- Martin_fr · 2022-09-17 19:05 From a PM conversation that developed into a topic of maybe general interest. QuoteThat said, you would not need full-featured dump indow, if Watches or Evel could do it. But watches can.... There is an option in their properties window. Under "Display format" Combine that with: - repeat count (at least under fpdebug) - the magnifying glass of the watches window's toolbar... QuoteIn Turbo Pascal and Delphi you could:  add the " , x" after the expression - and it makes the "intrinsic" `show HEX dump` - it would be enought for many of cases. TOgether with "pretend static array, byte count parameter" - it covers 99% of needs. But - i could not make this work in Lazarus.... Make HEX DUMP GUI and intrinsic (both override formatting and optionally override SizeOf) into Watch/Eval windows - and it would indeed cover 99% of needs of memory dump :-) See above. In the watches window you can get mem dumps. And you can override size of. The magnify glass gives you space for a 16 bytes per line format (use the splitter to make space). Downside it is multi purpose and does not use a monospaced font. ---------------------------------------------------------------------- Arioch · 2022-09-17 19:32 Thanks, i'll test it later. Maybe it has to be made easy to find, in the GUI explicitly or in the documentation. Coming from Delphi, I was looking for it and did not find. It also did not help that F1 keystroke is kileld by Anchor Docking - and there is no mouse-clickable HELP button to signal presense of iwndow help ---------------------------------------------------------------------- MarkMLl · 2022-09-17 19:40 Thanks for that Martin. As somebody who is basically a systems+comms programmer I do tend to find the default decimal display somewhat dismal. MarkMLl ---------------------------------------------------------------------- Martin_fr · 2022-09-17 20:22 Here is the help page https://wiki.lazarus.freepascal.org/IDE_Window:_Watch_list It is a bit dated, but maybe someone has time. - The "magnifier" needs to be added, the icon will be in the lazarus install's images folder... - The properties are there as image: Adding things like "memory dump" and "hexadecimal" into the text would help it being found by the search field. -- Also the effect of "repeat count" on the mem dump - Taking a Laz 2.3  Watches Screenshot, and add details about expanding structures and the array viewer => great. Other suggestions, probably welcome, always possible to discuss here first if there is any doubt. ---------------------------------------------------------------------- Arioch · 2022-09-17 21:05 Quote from: Martin_fr on September 17, 2022, 10:22:26 pmHere is the help page https://wiki.lazarus.freepascal.org/IDE_Window:_Watch_list ...but new users don't know it exists. There is no "Help" button visually, and keyboard F1 might not work... https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39890 So why i said the debug tool dialogs should have HELP button added. MAybe as in Windows-95 style caption bar (see TForm.BorderIcons), if not a regular TButton