异常显示服务器的开发者的路径,而不是 [英] Exception shows developer's path instead of servers

查看:150
本文介绍了异常显示服务器的开发者的路径,而不是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当一个例外,任何ASP.NET项目(可能是任何.NET应用程序)时,堆栈跟踪将显示在开发人员的机器上的路径,即使是在生产的时候。

When an exception occurs with any ASP.NET project (possibly any .net app) the stack trace will show the path on the developer's machine, even when in production.

怎么改?

什么是引擎盖下怎么回事?

What's going on under the hood?

推荐答案

此信息存储内源$ C ​​$ C编译过程中生成的.PDB文件。它们包含的调试信息。但一般人并不运输他们投入生产之前编写自己的机器上的应用程序。他们使用持续集成和构建是专门用于这一目的的服务器。

This information is stored inside the .PDB files that were generated during the compilation of the source code. They contain the debugging information. But normally people don't compile applications on their machines before shipping them into production. They use continuous integration and build servers that are dedicated for this purpose.

现在,如果你想关闭调试信息,你可以在你的项目的属性配置的详细程度和调试信息的级别。

Now if you want to turn off debugging details you could configure the level of verbosity and debug info in the properties of your project.

这篇关于异常显示服务器的开发者的路径,而不是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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