I'm trying to get WPF databinding errors to display in the Output window. None of the suggestions found here have helped, nor here.
Is there anything else I might try?
I'm trying to get WPF databinding errors to display in the Output window. None of the suggestions found here have helped, nor here.
Is there anything else I might try?
Your problem seems to be caused by your settings.
Which is why I suggested you return your install to default settings. Since you don't want to do that then it's a case of working out which part you changed to stop this working.
These are first chance exceptions you're not seeing. And, obviously, they are wpf binding specifically.
There are a number of ways someone could break this functionality.
There is an option you can set in code. This would be in app.xaml.cs or mainwindow ctor. Seeing as this happens in a brand new clean solution then I should think this is unlikely unless you're somehow getting this in there:
System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level =
System.Diagnostics.SourceLevels.Critical;
That'd simply filter out all databinding failures.
There's also Tools > Options > Debugging > Output Window
In there you will see the settings for the output window. It ought to look like:
You can also set options on the output window itself. Right click it and on the context menu there are a bunch of checkable options. Top of which is Exception Messages. If that isn't ticked then tick it. This particular checkbox will send first chance exceptions to the immediate window if unchecked.
First-chance exception notifications
In some settings configurations, first-chance exception notifications are displayed in the Immediate window.
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 then select or deselect Exception Messages.
There is also an outside chance you've got a plug in or something which is interfering. For example, the preview xaml binding failures plugin.
If all else fails you might want to try that.
https://marketplace.visualstudio.com/items?itemName=PeterSpa.XamlBinding
This is still experimental, but if your install is somehow subtly broken then you're not going to get any worse than totally missing binding failures.
If your objective is to view the databinding errors only for debugging purposes, and you are having trouble with setting it up, I would suggest use of an alternate tool: The Snoop tool. Very useful tool with a small learning curve. It is extremely useful for other situations as well.