首页 > 跟踪和调试设置架构 | Microsoft Docs

调试和跟踪有什么区别,跟踪和调试设置架构 | Microsoft Docs

互联网 2020-11-24 08:23:41
跟踪和调试设置架构Trace and Debug Settings Schema 03/30/2017

跟踪和调试设置指定用于收集、存储和路由消息的跟踪侦听器以及对跟踪开关设置的级别。Trace and debug settings specify trace listeners that collect, store, and route messages, and the level where a trace switch is set.

下表介绍每个跟踪和调试设置元素的功能。The following table describes the function of each trace and debug settings element.

元素Element描述Description将侦听器添加到跟踪源的 Listeners 集合中。Adds a listener to the Listeners collection for a trace source.将侦听器添加到 Listeners 集合中。Adds a listener to the Listeners collection.将侦听器添加到 sharedListeners 集合中。Adds a listener to the sharedListeners collection.指定对跟踪开关设置的级别。Specifies the level where a trace switch is set.指定调用 Debug.Assert 方法时是否显示消息框;另外指定要写入消息的文件的名称。Specifies whether to display a message box when you call the Debug.Assert method; also specifies the name of the file to write messages to.清除跟踪源的 Listeners 集合。Clears the Listeners collection for a trace source.清除跟踪的 Listeners 集合。Clears the Listeners collection for trace.将筛选器添加到跟踪源的 Listeners 集合中的侦听器。Adds a filter to a listener in the Listeners collection for a trace source.将筛选器添加到跟踪的 Listeners 集合中的侦听器。Adds a filter to a listener in the Listeners collection for trace.将筛选器添加到 sharedListeners 集合中的侦听器。Adds a filter to a listener in the sharedListeners collection.指定跟踪源的 Listeners 集合中的侦听器。Specifies listeners for the Listeners collection for a trace source.指定跟踪的 Listeners 集合中的侦听器。Specifies listeners for the Listeners collection for trace.指定由性能计数器共享的全局内存的大小。Specifies the size of the global memory shared by performance counters.从跟踪的 Listeners 集合中删除侦听器。Removes a listener from the Listeners collection for trace.从跟踪源的 Listeners 集合中删除侦听器。Removes a listener from the Listeners collection for a trace source.包含任何源或跟踪元素可以引用的侦听器。Contains listeners that any source or trace element can reference.包含用于启动跟踪消息的跟踪源。Contains trace sources that initiate tracing messages.指定用于启动跟踪消息的跟踪源。Specifies a trace source that initiates tracing messages.包含跟踪开关和对该跟踪开关设置的级别。Contains trace switches and the level where the trace switches are set.指定用于收集、存储和路由消息的跟踪侦听器以及对跟踪开关设置的级别。Specifies trace listeners that collect, store, and route messages and the level where a trace switch is set.包含用于收集、存储和路由跟踪消息的侦听器。Contains listeners that collect, store, and route tracing messages.请参阅See alsoTraceTraceSourceDebug配置文件架构Configuration File Schema
免责声明:非本网注明原创的信息,皆为程序自动获取自互联网,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责;如此页面有侵犯到您的权益,请给站长发送邮件,并提供相关证明(版权证明、身份证正反面、侵权链接),站长将在收到邮件24小时内删除。

相关阅读