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.