Skip to content

Commit ec6f272

Browse files
authored
Merge pull request #13641 from Mikejo5000/mikejo-br25
Update article on displaying WPF trace information
2 parents cf4aa90 + 89c40b0 commit ec6f272

File tree

1 file changed

+17
-38
lines changed

1 file changed

+17
-38
lines changed
Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Display WPF Trace Information
3-
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
55
ms.topic: how-to
66
dev_langs:
77
- CSharp
@@ -16,13 +16,14 @@ ms.author: mikejo
1616
manager: mijacobs
1717
ms.subservice: debug-diagnostics
1818
---
19-
# Display WPF Trace Information
2019

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.
2223

2324
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.
2425

25-
### To enable or customize WPF trace information
26+
## Enable or customize WPF trace information
2627

2728
1. On the **Tools** menu, select **Options**.
2829

@@ -32,51 +33,29 @@ Visual Studio can receive debug trace information from WPF applications and disp
3233

3334
4. Under **General Output Settings**, select **All debug output**.
3435

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.
3837

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**.
4039

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**.
4241

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.
4443

45-
**Critical** enables tracing of Critical events only.
44+
- **Critical** enables tracing of Critical events only.
4645

47-
**Error** enables tracing of Critical and Error events.
46+
- **Error** enables tracing of Critical and Error events.
4847

49-
**Warning** enables tracing of Critical, Error, and Warning events.
48+
- **Warning** enables tracing of Critical, Error, and Warning events.
5049

51-
**Information** enables tracing of Critical, Error, Warning, and Information events.
50+
- **Information** enables tracing of Critical, Error, Warning, and Information events.
5251

53-
**Verbose** enables tracing of Critical, Error, Warning, Information, and Verbose events.
52+
- **Verbose** enables tracing of Critical, Error, Warning, Information, and Verbose events.
5453

55-
**ActivityTracing** enables tracing of Stop, Start, Suspend, Transfer, and Resume events.
54+
- **ActivityTracing** enables tracing of Stop, Start, Suspend, Transfer, and Resume events.
5655

5756
For more information about what these levels of trace information mean, see <xref:System.Diagnostics.SourceLevels>.
5857

5958
9. Click **OK**.
6059

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.
76-
77-
7. Click the drop-down list and select **Off**.
78-
79-
8. Click **OK**.
80-
8160
## Related content
8261
- [Debugging WPF](../debugger/debugging-wpf.md)

0 commit comments

Comments
 (0)