Generate PDB from .NET DLL file?

后端 未结 5 1306
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 04:07

I need something that can generate a PDB from a DLL file (C# .NET code), is there any free program to do that?

5条回答
  •  独厮守ぢ
    2021-01-31 04:24

    PDB contains debug symbols related to DLL, and would normally be built together with the DLL. To enable generating pdb files go to project Properties, Build tab, Advanced... button and select in Debug Info field "pdb-only" or "full":

    Visual Studio generate PDB

    If you need to debug a thirdparty assembly without sources, then dotPeek and ReSharper will be extremely helpful having an option to generate PDB from DLL. In ReSharper, this can be done through ReSharper > Windows > Assembly Explorer by opening necessary assembly and clicking "Generate Pdb...":

提交回复
热议问题