vb.net 什么是详细错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17545637/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 14:12:17  来源:igfitidea点击:

What are Verbose Errors

vb.netwcf-data-services

提问by Michael Grubey

I came across the following in a WCF Service I was working on and at no point have I either coded this in or seen it there before.

我在我正在处理的 WCF 服务中遇到了以下内容,我从来没有在其中编码或在那里看到过它。

#If DEBUG Then
    config.UseVerboseErrors = True
#End If

What does this do and where could it have come from

这是做什么的,它可能来自哪里

Note - no one else has access to my work.

注意 - 没有其他人可以访问我的作品。

回答by Nickel

Generally speaking, verbose errors are supplied with the name of the unhandled exception and a stack trace showing where the error occurred in the first place, usually accompanied by a line number and file name.

一般而言,详细错误提供未处理异常的名称和显示错误首先发生位置的堆栈跟踪,通常伴随着行号和文件名。

A developer would want to see that sort of stuff while debugging or testing (debugging=true) but you would probably want a user to see a friendlier error message, or at least less low-level information, without giving away any architectural clues that might guide a would-be intruder,

开发人员希望在调试或测试时看到这类东西 (debugging=true),但您可能希望用户看到更友好的错误消息,或者至少是低级信息,而不泄露任何可能的架构线索引导一个潜在的入侵者,

They originate from your run-time environment during execution.

它们在执行期间源自您的运行时环境。

This is true to the definition of verbose which is:

这符合verbose的定义,即:

"Using or expressed in more words than are needed"

“用比需要更多的词来表达或使用”