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

前端 未结 5 1509
暖寄归人
暖寄归人 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:03

    It basically adds information for:

    • All non-public types, interfaces, structures, classes
    • Local variables in functions
    • Source file names for relevant code and corresponding line numbers in source code.

    which all combined makes reverse engineering very easy for native code.

    Luckily you can create a stripped down version of your PDB files which only contains public information with /PDBSTRIPPED parameter.

    Oh you edited to add C#/.NET, so I'm not sure if "PDBSTRIPPED" is applicable. However .NET applications are very easy to reverse engineer even without any symbol information. I wouldn't mind including them in a .NET project.

提交回复
热议问题