将调试器附加到另一个Visual Studio实例 [英] Attach debugger onto another Visual Studio instance

查看:154
本文介绍了将调试器附加到另一个Visual Studio实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2010中进行一些Visual Studio扩展开发. 在开发过程中进行调试非常有用,因此我将其配置为在F5调试器时打开另一个VS实例(

I'm doing some visual studio extension development in Visual Studio 2010. It would be useful to debug while developing so I have it configured to open another instance of VS when debugger for F5 ( http://donovanbrown.com/post/How-to-debug-a-Visual-Studio-Extension.aspx). This all works fine but is there a way to attach a debugger to an existing instance of VS2010, I have tried and the breakpoints aren't being hit. There are no errors but wondering if there is a way?

我应该补充一点,我确实知道如何附加到调试器,并且在附加到ASP.net代码之前已经使用过它.

I should add I do know how to attach to a debugger and I have used it before to attach to ASP.net code.

推荐答案

OK设法解决了这个问题. 我正在做的是按照通常的方法打开Visual Studio实例时,即打开一个普通实例(devenv.exe). 您需要使用参数(cmd线模式)打开一个实验实例: /rootsuffix Exp

OK managed to solve it. What I was doing was when opening an instance of Visual studio, following the usual method, i.e. open a normal instance ( devenv.exe). What you have to is open a experiemental instance, using the parameters ( cmd line mode): /rootsuffix Exp

然后使用附加到调试器模式来附加到该实例.

Then use the attach to debugger mode to attach to this instance.

这篇关于将调试器附加到另一个Visual Studio实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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