Click to enter _ more _java thousand ask
1. What is a dump file
The dump file is a memory image of the process. You can save the execution state of the program through the debugger to the dump file.
Dump files are used to debug drivers for driver writers, which must be opened with specialized tool software.
When our program is published, the code cannot be traced on the client, so the dump (. dmp extension) file is especially important to us. We can reproduce the problem by using the. dmp file, and then, depending on the status of the rendition (including Stack calls), you can find the line number where the problem occurred.
2. How to generate dump file
There are various methods of generating dump files, the most common one is through WinDbg software. The steps are as follows:
Download the installation WinDbg.
Open WinDbg, open File->attach to a process, and then display the processes (. exe) that you want to monitor in the list.
When the program crashes, execute the dump command to produce the. dmp file, which is commonly used in commands (you can query the WinDbg command manual for the command meaning):
C:/dumps/myappC:/dumps/myappC:/dumps/myapp.dmp
Executing the above results in a DMP file.
3. How to analyze dump files
The dump file can also be analyzed via WinDbg, with the following steps:
Open WinDbg, open File->sybolm File path, specify the path of the. PDB generated when publishing exe.
Open File->open Crash Dump, open a. dmp file.
Use the WinDbg command to parse a bug, such as (you can query the WinDbg command manual for the meaning of the command):!analyze-v
You can use the function of the shortcut bar to view the basic information of some variables
Java thousand ask _07JVM architecture (014) _ What is a dump file