Recent

Author Topic: Missing memory dump in debug windows  (Read 876 times)

quantumfoam

  • New member
  • *
  • Posts: 7
Missing memory dump in debug windows
« on: October 03, 2018, 06:23:18 pm »
I'm rather new to Lazarus. In Delphi (old versions),
there is a memory dump available under View/Debug Windows/CPU.

In Lazarus I only found View/Debug windows/Assembler
with assembler, but no hex memory dump.

Am I missing something or there is no such option?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4962
    • wiki
Re: Missing memory dump in debug windows
« Reply #1 on: October 11, 2018, 07:13:00 pm »
There is currently no memory dump window (it is on the todo, but with lots of other stuff)

you can enter a watch, and change it to output a memory dump. But it will usually only dump the amount of data used by the watched type. (use it together with the watch window extended side panel = last button on toolbar)

440bx

  • Sr. Member
  • ****
  • Posts: 393
Re: Missing memory dump in debug windows
« Reply #2 on: October 11, 2018, 11:28:38 pm »
In addition to Martin's suggestion above, you can also try one of these:

1. Debug your executable using MS Visual Studio.  This thread gives you an idea of how it's done https://forum.lazarus.freepascal.org/index.php/topic,42000.msg295128.html#msg295128

2. Use Process Hacker 2 to view the process memory.  Free download, nice, very useful utility.

HTH

quantumfoam

  • New member
  • *
  • Posts: 7
Re: Missing memory dump in debug windows
« Reply #3 on: October 12, 2018, 08:44:29 pm »
Thanks! Very useful tips.