在 IIS 中部署 .PDB 文件.有什么好处吗? [英] Deploying .PDB files in IIS. Any benefit?

查看:31
本文介绍了在 IIS 中部署 .PDB 文件.有什么好处吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 ASP.NET 和 Web 服务解决方案部署到 IIS 以用于开发服务器.看起来最后一个完成这项工作的人也部署了所有 .pdb 文件.我询问了它,并被告知如果它们留在服务器上,他们会在日志中提供更好的堆栈跟踪信息".

I am deploying ASP.NET and Web Service solutions to IIS for a development server. It looks like the last person that did this job deployed all the .pdb files too. I asked about it, and was told that they "provide better stack trace info in the logs" if they are left on the server.

这有什么道理吗?我总是把它们抛在后面,从不将它们部署到本地机器以外的任何地方.

Is there any truth to this? I've always left them behind, never deploying them to anywhere other than my local machine.

对于内部开发的 IIS 服务器(非生产,外部无法访问)是否有任何理由部署或不部署 .pdb 文件?有什么不好的事情可能发生吗?它们真的提供任何好处吗?

For an internal development IIS server (not production, not accessible to the outside world) is there any reason to or not to deploy the .pdb files? Is there anything bad that could happen? Do they really provide any benefit?

推荐答案

如果您正在记录异常,那么部署 PDB 文件可确保异常包括行号(因此 Steven A. Lowe 已经多次通知我 ;) )

If you are logging exceptions, then deploying the PDB files ensures that the exceptions include line numbers (so Steven A. Lowe has informed me on many occasions ;) )

这篇关于在 IIS 中部署 .PDB 文件.有什么好处吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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