Creating an Application Crash Dump

How to Create User Mode Crash Dump Files

If you experience application crashes you may be asked by support to create a crash dump file.

Enabling Local Crash Dumps for all Applications

In order to enable the creation of local crash dumps for every crashing process create the registry key:

HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps

Enabling Local Crash Dumps Globally for one Executable Only

In order to enable the creation of local crash dumps for a specific crashing process only, create the registry key:

HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\SomeProcess.exe

Note: Adjust the process name as necessary (SomeProcess.exe in the example above).

Local Crash Dump Default Settings

By default, the LocalDumps registry key is not present. Local dump files are, therefore, not created.

Once the LocalDumps key is created, the following defaults apply:

  • Dump folder: see below
  • Dump count: 10 (maximum number of dump files in the dump folder)
  • Dump type: mini dump

Disabling Local Crash Dumps

In order to disable the creation of local crash dumps delete the registry key:

HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps

File System Location of Local Crash Dumps

Crash dump file are stored in %LOCALAPPDATA%\CrashDumps. This is a subfolder of the user profile. For user helge it resolves to C:\Users\helge\AppData\Local\CrashDumps.

Note: if the crashing application runs under the SYSTEM account, that resolves to C:\Windows\System32\config\systemprofile\AppData\Local\CrashDumps.

More Information

  • This works on all versions of Windows beginning with Vista and Server 2008 (including Windows 7, Windows 10, Windows 11, Server 2016, Server 2019, etc.).
  • These dumps are configured and controlled independently of the rest of the WER infrastructure. You can make use of the local dump collection even if WER is disabled or if the user cancels WER reporting.
  • Collecting User-Mode Dumps in Microsoft Docs

Comments

Related Posts

What's Wrong with Group Policy

What's Wrong with Group Policy
Over the years I have worked with Group Policy in many different ways. My experience ranges from helping an enterprise client establish a brand new set of policies for physical PCs and VDI machines to authoring ADM/ADMX/ADML files. Last year I presented and wrote a very detailed analysis of the impact of Group Policy on user logon performance (blog posts). Along the way I learned a lot about the strengths but also about the weaknesses of Group Policy. This article is an account of the latter.
Windows General

Latest Posts

Fast & Silent 5 Watt PC: Minimizing Idle Power Usage

Fast & Silent 5 Watt PC: Minimizing Idle Power Usage
This micro-series explains how to turn the Lenovo ThinkCentre M90t Gen 6 into a smart workstation that consumes only 5 Watts when idle but reaches top Cinebench scores while staying almost imperceptibly silent. In the first post, I showed how to silence the machine by replacing and adding to Lenovo’s CPU cooler. In this second post, I’m listing the exact configuration that achieves the lofty goal of combining minimal idle power consumption with top Cinebench scores.
Hardware

Fast & Silent 5 Watt PC: Lenovo ThinkCentre M90t Modding

Fast & Silent 5 Watt PC: Lenovo ThinkCentre M90t Modding
This micro-series explains how to turn the Lenovo ThinkCentre M90t Gen 6 into a smart workstation that consumes only 5 Watts when idle but reaches top Cinebench scores while staying almost imperceptibly silent. In this first post, I’m showing how to silence the machine by replacing and adding to Lenovo’s CPU cooler. In a second post, I’m listing the exact configuration that achieves the lofty goal of combining minimal idle power consumption with top Cinebench scores.
Hardware