Dump file and PDB file

Source: Internet
Author: User

PDB file:

Just a mapping table that does not contain the source content.

What's stored:

1.maps the identifiers that's create in source files for classes, methods, and other code to the identifiers that is US Ed in the compiled executables of your project.

The. pdb file also maps the statements in the source code to the execution instructions in the executables.

The debugger uses this information to determine, key pieces of information:

The source file and line number is displayed in the Visual Studio IDE

The location of the executable to stop at if you set a breakpoint.

Mapping of identifiers, mapping of code.

 

2.A symbol file also contains the original location of the source files, and optionally, the location of A source Server W Here the source files can is retrieved from.

The PDB also stores the original path to the source code at compile time.

Using Dump Files:

. DMP:

1. What is stored:

Dump files with heaps:

If you load a dump file this was saved with a heap, Visual Studio can load the symbols even if the application binary is n OT found. Visual Studio also saves the binaries of loaded native modules in the dump file, which can do debugging much easier.

A binary file is stored, so the debug machine is missing and debugging is not a binary file.

    Dump files without heaps:

is much smaller than dumps with heap information.

To debug, be sure to specify a binary file.

2. Debug the file you want:

Binary, source, PDB, indispensable. In the case of heap, the binary exists in the dump file, so you do not need to prepare it yourself.

3. When debugging, vs debugger Where to find files

Default search paths for executable files

Visual Studio automatically searches these locations for executable files, aren ' t included in the dump file:

    1. The directory that contains the dump file. (The path where the dump file resides)

    2. The path of the module is specified in the dump file. The the module path on the machine where the dump was collected. (If the dump machine, the dump file will save the path)

    3. The symbol paths specified in the debugging, Options, Symbols page of the Visual Studio Too LS, Options dialog box. You can add more locations to search on the this page. (The path of the PDB specified in debugger).

Dump file and PDB file

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.