在.appxupload包中包含PDB文件。 PDB是否可供最终用户访问? [英] Include PDB files in .appxupload package. Is PDB accessble by the end users?

查看:69
本文介绍了在.appxupload包中包含PDB文件。 PDB是否可供最终用户访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们提交应用包时,并包含"PDB"文件的一部分总和。


要求PDB更容易查看和分析任何崩溃报告。


PDB文件是否仅供Microsoft使用。或者也可以访问客户端PC。


如果PDB文件发送到客户端PC,客户端可以反编译我们的应用程序并轻松访问我们的一些源代码。


请确认PDB只发给微软。

解决方案


如果您担心使用PDB文件信息的人帮助他们对可执行文件进行反向工程,您还可以使用  / PDBSTRIPPED:filename  链接器生成剥离的PDB文件选项。如果你想要从中删除私人信息的现有PDB文件
,你可以使用一个名为pdbcopy的工具,它是Windows调试工具的一部分。



默认情况下,剥离的PDB文件包含以下信息:



  • 公共符号(通常只有非静态函数和全局变量)
  • 负责可执行文件中代码部分的目标文件列表
  • 帧指针优化信息(FPO)


这是允许可靠调试所需的最少信息。最小信息也使得很难获得有关原始源代码的任何其他信息。因为两个剥离的PDB文件生成常规PDB文件,
您可以向可能需要有限调试功能的用户提供剥离版本,但保持完整PDB的机密。请注意 / PDBSTRIPPED  生成第二个较小的PDB文件,因此请确保在生成构建版本以便广泛分发时使用正确的PDB文件
。对于典型项目,常规PDB的大小可能只有几兆字节,但是剥离版本的PDB可能只有几百千字节。





https://msdn.microsoft.com/en-us/library/windows/desktop/ee416588(v = vs.85)的.aspx


When we submit an app package and include "PDB" file part of summation.

PDB is require for more easy review and analysis any crash reports.

Is the PDB file is only going to Microsoft. Or also going to the client PC.

If the PDB file going to client PC, the client can decompile our App and access easy some of our source code.

Please confirm that PDB going only to Microsoft.

解决方案

If you are concerned about people using the PDB file information to help them reverse engineer your executable, you can also generate stripped PDB files, by using the /PDBSTRIPPED:filename linker option. If you have existing PDB files that you would like to strip private information from, you can use a tool called pdbcopy, which is part of the debugging tools for Windows.

By default, stripped PDB files contain the following information:

  • Public symbols (typically only non-static functions and global variables)
  • A list of object files that are responsible for sections of code in the executable
  • Frame pointer optimization information (FPO)

This is the minimum information that is required to allow reliable debugging. Minimum information also makes it difficult to obtain any additional information about your original source code. Because both a stripped PDB file and a regular PDB file are generated, you can provide the stripped version to users who may need limited debugging abilities, but keep the full PDBs confidential. Note that /PDBSTRIPPED generates a second, smaller PDB file, so make sure that you use the correct PDB file when you generate builds to distribute broadly. For a typical project, a regular PDB may be a few megabytes in size, but a stripped version of the PDB may be only a few hundred kilobytes.

https://msdn.microsoft.com/en-us/library/windows/desktop/ee416588(v=vs.85).aspx


这篇关于在.appxupload包中包含PDB文件。 PDB是否可供最终用户访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆