如何在Visual Studio 2012实例设计时进行调试 [英] How to debug Visual Studio 2012 instance design-time

查看:135
本文介绍了如何在Visual Studio 2012实例设计时进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发WPF MarkupExtension,在设计时遇到错误.使用以前的Visual Studio 2010版本,可以启动Visual Studio 2010的第二个实例,并附加到已经在运行的实例的过程中,设置断点并调试设计时的行为.

I'm developing a WPF MarkupExtension and encountered errors during design time. With the previous version of Visual Studio 2010 it was possible to start a second instance of Visual Studio 2010 and attach to the process of the already-running instance, setting breakpoints and debugging the design time behavior.

但是在Visual Studio 2012中,我也可以附加到另一个Visual Studio 2012的过程中,但是在第二个实例中没有加载任何符号,因此我无法像使用Visual Studio那样调试设计时间; Studio  2010.

In Visual Studio 2012 however I can attach to the process of another Visual Studio 2012 as well, but no symbols are loaded in the second instance and therefor I'm not able to debug the design time as with Visual Studio 2010.

如何使此调试器运行?

我尝试过的事情:

  • "devenv.exe/RootSuffix Exp"技巧没有成功
  • 始终以管理员身份执行
  • 加载全部或默认符号
  • 使用和不使用本机代码进行调试(附加过程)
  • 使用和不使用.NET 4代码进行调试(附加过程)

推荐答案

该过程称为XDesProc,它是随每个新的预览窗口"创建的.因此:要调试预览窗口,请使用相同的解决方案打开Visual Studio 2012的第二个实例,设置断点并附加到XDesProc.建议仅打开一个预览窗口以附加到正确的进程.否则,请使用流程浏览器找到正确的流程.

The process is called XDesProc, and it is created with each new Preview Window. Therefor: to debug a preview window, open a second instance of Visual Studio 2012 with the same solution, set your breakpoints and attach to XDesProc. It's recommended to have only one preview window open to attach to the right process. Otherwise use Process Explorer to find the correct process.

这篇关于如何在Visual Studio 2012实例设计时进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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