Use windbg to view dump files

Source: Internet
Author: User

Download windbg

 

The latest program automatically jumps out of the client.

Check the code.

Start to study how to view dump files.

 

Select compilation settings


After rebuildall, create the same path as the path of the client program locally. For example, the path of the file to be debugged on the client is D:/test/test1.exe.


Create the same directory locally and copy the generated PDB file and test1.exe to the corresponding local directory.

Do not change the code until the debugging ends. (For windbg, EXE, PDB, and source code time, work well)

 

Upload test1.exe to the client

 

Run the program to be captured on a remote machine (test1.exe)

Start the command line and enter the windbg installation folder (* 1)

Run

Adplus-crash-PN test1.exe-o C:/dumps

If there is a Waring prompt, follow OK

 

 

In this example, when test1.exe fails, the DMP file will be crawled under C:/dumps.

Copy to any part of the local machine, use windbg to open the wait> prompt to press K to see the stack call before jumping out (windbg needs to set the symbol server first:

Open windbg, press Ctrl + S, enter SRV * C:/websymbols * http://msdl.microsoft.com/download/symbols)

 

Note: The local directory EXE and the PDB file must correspond to the EXE file that generates the dump file.

 

Note 1: the remote host is installed with the adplus to capture the crash dump.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.