You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Visual Studio can receive debug trace information from WPF applications and display it in the Output window. Learn how to manage and customize WPF tracing.
4
-
ms.date: 11/04/2016
2
+
title: Display WPF trace information for data binding
3
+
description: Visual Studio can receive debug trace information for data binding from WPF applications and display it in the Output window. Learn how to manage and customize WPF tracing.
4
+
ms.date: 02/25/2025
5
5
ms.topic: how-to
6
6
dev_langs:
7
7
- CSharp
@@ -16,13 +16,14 @@ ms.author: mikejo
16
16
manager: mijacobs
17
17
ms.subservice: debug-diagnostics
18
18
---
19
-
# Display WPF Trace Information
20
19
21
-
Visual Studio can receive debug trace information from WPF applications and display that information in the **Output** window. To display debug trace information, WPF tracing must be enabled.
20
+
# Display WPF trace information for data binding
21
+
22
+
Visual Studio can receive debug trace information for data binding from WPF applications and display that information in the **Output** window. To display debug trace information, WPF tracing must be enabled.
22
23
23
24
You can enable WPF tracing in your App.Config file or programmatically by using the <xref:System.Diagnostics.PresentationTraceSources> class. An easier way to enable WPF tracing is by using the **Options** window. WPF tracing for web applications is not supported.
24
25
25
-
### To enable or customize WPF trace information
26
+
##Enable or customize WPF trace information
26
27
27
28
1. On the **Tools** menu, select **Options**.
28
29
@@ -32,51 +33,29 @@ Visual Studio can receive debug trace information from WPF applications and disp
32
33
33
34
4. Under **General Output Settings**, select **All debug output**.
34
35
35
-
5. In the box on the right, look for **WPF Trace Settings**.
36
-
37
-
6. Open the **WPF Trace Settings** node.
36
+
5. In the box on the right, open the **WPF Trace Settings** node.
38
37
39
-
7. Under **WPF Trace Settings**, click the category of settings that you want to enable (for example, **Data Binding**).
38
+
6. Under **WPF Trace Settings**, select **Data Binding**.
40
39
41
-
A drop-down list control appears in the Settings column next to **Data Binding** or whatever category you clicked.
40
+
A drop-down list control appears in the Settings column next to **Data Binding**.
42
41
43
-
8. Click the drop-down list and select the type of trace information that you want to see: **All**, **Critical**, **Error**, **Warning**, **Information**, **Verbose**, or **ActivityTracing**.
42
+
7. Click the drop-down list and select the type of trace information that you want to see.
44
43
45
-
**Critical** enables tracing of Critical events only.
44
+
-**Critical** enables tracing of Critical events only.
46
45
47
-
**Error** enables tracing of Critical and Error events.
46
+
-**Error** enables tracing of Critical and Error events.
48
47
49
-
**Warning** enables tracing of Critical, Error, and Warning events.
48
+
-**Warning** enables tracing of Critical, Error, and Warning events.
50
49
51
-
**Information** enables tracing of Critical, Error, Warning, and Information events.
50
+
-**Information** enables tracing of Critical, Error, Warning, and Information events.
52
51
53
-
**Verbose** enables tracing of Critical, Error, Warning, Information, and Verbose events.
52
+
-**Verbose** enables tracing of Critical, Error, Warning, Information, and Verbose events.
54
53
55
-
**ActivityTracing** enables tracing of Stop, Start, Suspend, Transfer, and Resume events.
54
+
-**ActivityTracing** enables tracing of Stop, Start, Suspend, Transfer, and Resume events.
56
55
57
56
For more information about what these levels of trace information mean, see <xref:System.Diagnostics.SourceLevels>.
58
57
59
58
9. Click **OK**.
60
59
61
-
### To disable WPF trace information
62
-
63
-
1. On the **Tools** menu, select **Options**.
64
-
65
-
2. In the **Options** dialog box, in the box on the left, open the **Debugging** node.
66
-
67
-
3. Under **Debugging**, click **Output Window**.
68
-
69
-
4. In the box on the right, look for **WPF Trace Settings**.
70
-
71
-
5. Open the **WPF Trace Settings** node.
72
-
73
-
6. Under **WPF Trace Settings**, click the category of settings that you want to enable (for example, **Data Binding**).
74
-
75
-
A drop-down list control appears in the Settings column next to **Data Binding** or whatever category you clicked.
0 commit comments