Recent

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

quantumfoam

  • New Member
  • *
  • Posts: 23
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: 9792
  • Debugger - SynEdit - and more
    • 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

  • Hero Member
  • *****
  • Posts: 3944
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
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

quantumfoam

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

Arioch

  • Sr. Member
  • ****
  • Posts: 421
Re: Missing memory dump in debug windows
« Reply #4 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