Windows abnormally generates DUMP files through the registry

Open the Registry Editor

Here are two ways to open Registry Editor in Windows 10:

1、在任务栏上的搜索框中,键入regedit,然后选择"注册表编辑器 (桌面应用) 结果。

2、右键单击"开始", 然后选择"运行"。  在"打开:"框中键入 regedit,然后选择"确定"。

find the directory

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps

insert image description here
Dump corresponds to Type

0 = Create a custom dump  

1 = Mini dump  

2 = Full dump 

Add the attribute item according to the above figure, and save the data under C:\CrashDump after the program crashes. It is only a rescue measure, but it is more important to find the source of the error. If the program can actively record the execution information at the time of the crash at the same time as the crash, it will help to correct the work. Microsoft provides "DbgHelp" error debugging technology. The information when the program crashes can be saved by calling related functions, and then the execution status at that time can be analyzed with the help of WinDbg software. Call the MiniDumpWriteDump function of "DbgHelp" to save the Dump file with the suffix ".dmp", which can be read and analyzed by WinDbg.
Turn on and off Dump with one click

Guess you like

Origin blog.csdn.net/weixin_43925768/article/details/131909874