优势包括与您的版本的应用程序PDB文件的优缺点您的、优缺点、应用程序、优势

2023-09-03 04:56:50 作者:ン开拖拉机环游世界つ

我有一个VB.net应用程序。目前,该应用程序的发行版本产生不PDB文件。这给了我缺少有用的信息,如行号错误日志。 我期待在包括PDB文件将来的版本,但我想知道这样做的优点和缺点(性能明智的,大小明智,code安全明智的)

I've got a VB.net application. Currently the release version of the application is produced without a PDB file. This gives me error logs lacking useful details such as line numbers. I'm looking at including the PDB files with future builds but i'd like to know what the advantages and disadvantages of this are (performance wise, size wise, code security wise)

推荐答案

在部署调试符号您的应用程序,它变得很容易有人来沿线和逆向工程工作,其中有些人觉得不可取。同样地,你必须部署更多的文件和部署的项目变大。该PDB文件本身不会导致该应用获取任何慢,因为出货PDB并不总是preclude放弃优化(你就必须要小心 - 默认的调试项目设置往往不是优化输出时产生PDBS)。

When you deploy your debug symbols for your application, it becomes really easy for someone to come along and reverse-engineer your work, which some people find undesirable. Likewise, you have to deploy more files and your deployable project gets bigger. The PDB files themselves don't cause the app to get any slower, as shipping a PDB doesn't always preclude forgoing optimizations (you just have to be careful -- the default "Debug" project settings tend to not optimize your outputs when they generate PDBs).