Lazarus

Using the Lazarus IDE => Debugger => Topic started by: quantumfoam on October 03, 2018, 06:23:18 pm

Title: Missing memory dump in debug windows
Post by: quantumfoam 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?
Title: Re: Missing memory dump in debug windows
Post by: Martin_fr 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)
Title: Re: Missing memory dump in debug windows
Post by: 440bx 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 (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
Title: Re: Missing memory dump in debug windows
Post by: quantumfoam on October 12, 2018, 08:44:29 pm
Thanks! Very useful tips.
Title: Re: Missing memory dump in debug windows
Post by: Arioch on December 07, 2022, 08:25:31 pm
One, perhaps can also try https://github.com/AlexanderBagel/ProcessMemoryMap/releases

1.1.15 Release is old but stable

v1.3.19-beta is promising but on my win7x64 crashes on half the processes
TinyPortal © 2005-2018