The method of generating the dump windows

The first: through Task Manager: This program applies hang (crash) when the process has not quit, for example, I run the program, there have been the following error:

At this time, open the Task Manager, right-click on the appropriate process, click on "Create Dump File":

One will be created:

Then the DMP file copying on a development machine, with open VS: The following screen will appear, in order to know the call stack when an error occurs, you need to set the path symbol, click on "Set Symbol Paths":

Note that this pdb to correspond to the crash of exe, otherwise the call stack can not show:

After the setup is complete, click on the "Debug with Native Only" you can see the call stack.

 

 

The second: to change the registry

If the program does not crash when jumping out of the box, allowing the operating system to automatically generate dump when the program crash and placed under a specific directory by setting a registry change

Increase the registry HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ Windows Error Reporting \ LocalDumps 

Add Item follows:

The meaning is represented DumpType:

0 = Create a custom dump  
1 = Mini dump  
2 = Full dump  

Published an original article · won praise 0 · Views 2714

Guess you like

Origin blog.csdn.net/yjj350418592/article/details/105300326