Binding errors not showing on output window

五迷三道 提交于 2019-12-17 16:56:52

问题


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


回答1:


Try

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




回答2:


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.




回答3:


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.




回答4:


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.



来源:https://stackoverflow.com/questions/8850143/binding-errors-not-showing-on-output-window

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!