Tutorials‎ > ‎

Generate Windbg crash dump

Please follow these steps:

Install WinDbg as the default debugger:

1) Download the dbg_x86_6.12.2.633.msi file from here

2) Execute and install the downloaded dbg_x86_6.12.2.633.msi file.

3) If you are using Windows XP, go to Start Menu and select "run". Then type "CMD" (without the quotes) in the run dialog box and press enter.

4) If you are using Windows Vista or later, go to Start Menu and type "CMD" (without the quotes) in the search box. When "cmd.exe" is found in the results, press the right-click that item and select the "run as administrator" option in the popup menu. Select YES if you are asked for privilege elevation.

5) In the CMD box type the following command:

If you are using a 32-bit operating system, type:

 CD "C:\Program Files\Debugging Tools for Windows (x86)"

 (And press the enter key)

otherwise, if you are using a 64-bit operating system, type:

CD "C:\Program Files (x86)\Debugging Tools for Windows (x86)"

 (And press the enter key)

You should see something similar to this: "C:\Program Files\Debugging Tools for Windows (x86)>"

(NOTE: WinDbg is installed in Program Files folder by default, if you installed the application in another folder, execute the CD command with the appropriate parameter)

6) Now type: "WINDBG -I" (it is a letter "i" in uppercase and there is a space between windbg and the hyphen) and press enter. You should see a message saying that WinDbg will be the default debugger.

7) Close the console window.

Now execute the crashing apps and when the crash occurs, WinDbg will open automatically. At first place, press NO to the "save workspace" dialog box you will see.

You will see the "command" window with a text area in the bottom to enter commands. Type the following:

".symfix" (a dot followed by "symfix" text and press enter)

Then,

".reload" (a dot followed by "reload" text and press enter)

After that:

".dump /o /mA /ba C:\crash.cab" (maintain the letter-case and press enter)

Finally, please upload the generated crash files to a file sharing service in order to investigate the issue.





Comments