我们能在WPF中调试Xaml吗?有没有任何外部工具或VS插件可以做到这一点?
我偶尔发现这里的技巧很有用...
http://www.wpftutorial.net/DebugDataBinding.html
...尤其是第二种方法,使用一个虚拟值转换器来进入调试器。这对于查看正在绑定的确切对象等非常有用。
Wayback Link | Get line numbers of XAML issues (Peter Himschoot):
Simply add this to your project file:
<!-- under the <PropertyGroup> tag -->
<XamlDebuggingInformation>true</XamlDebuggingInformation>
Now we at least get line number information on the problem :)
XamlParseException的更多信息(Laurent Bugnion)
Wayback Link | XAML Runtime Parsing Exceptions (c/o Erno de Weerd)
Wayback Link | How to debug triggers using Trigger-Tracing(Dan Lamping)
Silverlight中调试动态XAML(Julia Lerman)
只需使用Google/StackOverflow了解如何调试特定的XAML问题。
XAML是一种声明性语言,而不是命令式语言,因此我不认为调试它是可能的。
不,这是不可能的。