Last update: 16 December 2024 (cf)
In the following section we will list multiple possibilities for creating a memory dump in Microsoft Windows
In order to create a dump of a live process follow these steps:
The collection of dumps via the WER can be configured via the Windows registry:
The following values have to be defined in the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
Type : REG_DWORD Default : 1
For further information please see Microsoft Learn: Collecting User-Mode Dumps.
These tools are provided by Microsoft and can be obtained by visiting Debugging Tools for Windows.
As part of the debugging tools WinDbg can be attached to any process and log crashes accordingly.
Here is a basic description of the WinDbg process:
For a in depth description of the options available with WinDbg please visit Debugging Using The Windows Debugger - WinDbg.
ADPlus is another debugger that is contained in the Windows Debugging Tools, for an in depth description how to use it see Advanced troubleshooting for Windows start-up issues.
Here are some basic command lines that may be used in connection with Fabasoft products:
If you are using a system that is not able to create dumps using WER (e.g. Microsoft Windows Server below 2008), you can use cdb (also available from the Windows Debugging Tools) to automatically create these dumps.
The following settings have to be added to the registry of the affected server:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"="1"
"Debugger"="\"C:\\Program Files\\Debugging Tools for Windows\\cdb.exe\" -p %ld -c \".dump -ma -u c:\\dump.dmp;q\" -e %ld -g"
For further information on postmortem debugging, visit Enabling Postmortem Debugging.
In some cases, Visual Studio writes its own debugger to the registry, so other debugging options (for example WER debugging) does not work.
To disable Visual Studio JIT debugger, delete the following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger
Microsoft Learn: Manually generate a memory dump file
Microsoft Learn: Collecting User-Mode Dumps
Microsoft Learn: Debugging Tools for Windows
Microsoft Learn: Debugging Using The Windows Debugger - WinDbg
Microsoft Learn: Advanced troubleshooting for Windows start-up issues
Microsoft Learn: Enabling Postmortem Debugging