发布 ASP.NET DLL 的调试版本
我对在实时站点中使用 dll 的发布版本和调试版本有点困惑。我们编写了代码,以便当站点遇到未捕获的异常时,它会运行该异常和任何内部异常,并向我们发送电子邮件详细信息。我读过,仅使用发布版本的 dll 对性能来说是最好的,但我想知道如果我们走这条路,这仍然允许我们检查异常并获取行号等有关错误发生位置的信息吗?或者我们是否必须有调试版本才能获取该信息?谢谢。
I'm a little confused about using release vs. debug versions of a dll for a live site. We have code written so that when the site experiences an uncaught exception it runs through the exception and any inner exception and emails us the details. I've read that it's best for performance to only use release version dlls but I wondered if we went that route, would that still allow us to inspect the exceptions and get line numbers and so forth about where the error occurred? Or do we have to have the debug version out there to get that information? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要将 DLL 的调试版本部署到您的服务器。
如果您将 dll 的发行版本与 pdb 文件一起部署,则异常仍应包含行号。
请参阅此处
You don't need the debug version of the DLLs deployed to your servers.
If you deploy a release version of the dlls along with the pdb files, your exceptions should still contain line numbers.
See here