Visual Studio debugging requires a PDB File

Source: Internet
Author: User

A new solution configuration is created in vs2005, but the output DLL cannot be debugged.

Originally, vs did not generate the PDB file when generating the DLL. The description of the PDB file on msdn is:

The dbg file is a portable executable (PE) file that contains debugging information in codeview format of the Visual Studio debugger (or other formats, depending on the dbg creation method ). When noCodeDbg files can be debugged. The dbg file also allows Ole RPC debugging.

Dbg files have been replaced by PDB files, which are more commonly used for debugging.

But how to generate the PDB file? The command line command is/debug

How to Make vs generate the PDB file when generating the DLL? You need to set the debugging information of the corresponding project to full or PDB-only. If it is set to none, no PDB file will be generated.

You can set project debugging information at: Project Properties> Generate> advanced> debug information.

Related Article

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.