Binding errors not showing on output window

2020-02-01 18:34发布

My output window does not show binding errors for my project. However on a colleagues machine, binding errors are displayed in the output window.

Any ideas on how to switch this on on my machine (the source code is identical on both machines so I'm guessing it is an IDE setting).

标签: wpf binding
4条回答
啃猪蹄的小仙女
2楼-- · 2020-02-01 18:56

I had the same problem and making the appropriate changes (Tools -> Options -> Debugging -> Output Window -> WPF Trace Settings -> Data Binding), I still couldn't see any DataBinding issues in the Output window. The problem was I found this line in my App.cs code

System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level = System.Diagnostics.SourceLevels.Critical;

This option was obviously overwriting the settings I made in the Options menu.

查看更多
We Are One
3楼-- · 2020-02-01 18:58

In some settings configurations, first-chance exception notifications are displayed in the Immediate window.

To toggle first-chance exception notifications in the Immediate window On the View menu, click Other Windows, and click Output.

Right-click on the text area of the Output window, and select or deselect Exception Messages.

查看更多
▲ chillily
4楼-- · 2020-02-01 19:00

Try

Tools -> Options -> Debugging -> Output Window -> WPF Trace Settings -> Data Binding

查看更多
Summer. ? 凉城
5楼-- · 2020-02-01 19:03

If the following solution doesn't work for you:

Tools -> Options -> Debugging -> Output Window -> WPF Trace Settings -> Data Binding

Try to right click on the Output area of the Output Window, and Select all output messages you want, and especially Program Output option.

All output messages

查看更多
登录 后发表回答