This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5932|Reply: 1

[Source] View reading . PDB file content information

[Copy link]
Posted on 12/26/2022 6:27:15 PM | | | |
Requirements: When a program throws an exception, the exception information will include the source code file path compiled at that time, and the number of lines reported in the error. It is with the .pdb file that this information is displayed, so how can I see the contents of the .pdb file?

Sometimes there are too many projects in the source code repository, and the program deployed to the server has been deployed to the server for too long, and the project source code address has been forgottenInformation such as the path of the file compiled at that time, according to these prompts, it is easy to find the source code of the project.

VS 2022 sets up the project to generate a .pdb file
https://www.itsvse.com/thread-10397-1-1.html

vs What and why .pdb files are generated
https://www.itsvse.com/thread-4435-1-1.html

PDB file

All modern versions of the Microsoft compiler store debugging information about the compiled executable in a separate program database (.pdb) file. This file is commonly referred to as a PDB. Data is stored in a separate file from the executable to help limit the size of the executable, saving disk space and reducing the time it takes to load data. This method also allows executables to be distributed without revealing this important information, making programs easier to reverse engineer.

View the PDB file

Download the cvdump.exe tool at:The hyperlink login is visible.

cvdump.exe (957 KB, Number of downloads: 0, 售价: 5 粒MB)

Find a .pdb file to test with the following command:



To read the contents of the .pdb file via C# code, please refer to:

The hyperlink login is visible.





Previous:【Practical Combat】Build a Gitea private Git repository with soft routing
Next:Virtual actors: Dapr vs Orleans
Posted on 1/6/2023 8:34:52 PM |
Learn it
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com