Add ability to debug xaml design mode issues
This suggestion is migrated to Developer Community. Please use below link to view the current status.
If you develop an app with blendability in mind (support of designer mode and designer data) it is sometimes very hard to find issues that occur in your code.
It will be very useful to be able to run debug against "design mode" with breakpoints and so on.
Thanks for your feedback!
This is an idea that we have been actively considering on our team as well. We would love to hear more thoughts from the community around exactly how they would like to see this experience work. For example, should Blend always have a mode where you are running the designer under a Debug mode, or should you be prompted when a particular crash or issue happens, etc.
At least show a full stack trace to the issue... You normally see short messages like:
pointing to the decorated text in the xaml designer only shows e.g. "The method or operation is not implemented" for a thrown NotImplementedException.
Ben Wallis commented
This has been a desperately needed feature in Visual Studio for a long time now, and it's surprising that it hasn't been addressed yet given how much of an impact it has on the usability of design time data contexts. Having to manually attach a debugger to the XDesProc process just to catch a typo in your design time View Model class is pretty ridiculous.