异常显示服务器的开发者的路径,而不是开发者、路径、而不是、异常

由网友(人心太凉别太善良)分享简介:当一个例外,任何ASP.NET项目(可能是任何.NET应用程序)时,堆栈跟踪将显示在开发人员的机器上的路径,即使是在生产的时候。When an exception occurs with any ASP.NET project (possibly any .net app) the stack trace will...

当一个例外,任何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.

阅读全文

相关推荐

最新文章