调试Visual Studio或Blend Silverlight/WPF设计器加载错误? [英] Debug Visual Studio or Blend Silverlight / WPF designer load errors?

查看:100
本文介绍了调试Visual Studio或Blend Silverlight/WPF设计器加载错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以调试Visual Studio或Blend,因此我可以弄清楚代码中XAML设计器加载错误的来源?

Is there a way to debug Visual Studio or Blend so I can figure out where XAML designer load errors come from in my code?

堆栈跟踪通常是无用的.

The stack traces are often useless.

谢谢...

推荐答案

使用两个VS2010实例.使用主应用程序probject或测试工具应用程序项目加载一个,而使用控件项目加载另一个.构建控件项目后,请参考其他项目中的调试dll.从包含控件项目的VS2010实例进行调试,然后将其附加到包含测试应用程序的VS2010实例.

Use two VS2010 instances. Load one with your main app probject or a test harness application project and load the other with your controls project. Having built the controls project reference the debug dlls in your other project. Debugging from the VS2010 instance holding the controls project attach to the VS2010 instance holding the test application.

根据需要放置断点.

现在像在将控件构建到应用程序中一样,驱动VS2010的测试应用程序实例,在加载控件时,它们的代码将执行,您可以开始逐步执​​行代码.在Blend中使用控件时,只要将其附加到Blend实例上,您就可以做类似的事情.

Now drive the test application instance of VS2010 as you would when building yout controls into an application, when your controls are load their code will execute and you can start stepping the code. You can do a similar thing when working with your controls in Blend just attach to the Blend instance.

这篇关于调试Visual Studio或Blend Silverlight/WPF设计器加载错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆