How much information do pdb files contain? (C# / .NET)

前端 未结 5 1508
暖寄归人
暖寄归人 2020-12-30 02:36

Is is wise to redistribute the pdb files along with a commercial application?

Occasionally, I\'m using the stack trace to get a more detailed error reporting logs fr

5条回答
  •  时光取名叫无心
    2020-12-30 03:00

    Newer .Net compiler versions can embed the full source code with all comments in the PDB file.

    The free JetBrains dotPeek decompiler uses this Blob to show the decompiled code. Check Assembly -> Metadata -> Portable PDB Metadata -> CustomDebugInformation -> Kind: guid 0003 0E8A571B-6926-466E-B4AD-8AB04611F5FE (Embedded Source).

    This is documented here: https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#EmbeddedSource

提交回复
热议问题