Visual Studio 2010 扩展 - 无法中断实验实例中的执行
我正在尝试使用针对 Visual Studio 2010 实验实例运行的 Visual Studio 扩展中的调试点来中断执行。
由于某种原因,当尝试中断执行时,我收到一个错误:
"Unable to break execution. This process is not currently executing the type of code that you selected to debug."
奇怪的是,我可以在 Visual Studio 2005 和 2008 实验实例中毫无问题地进行调试。
还有其他人在 VS 2010 中遇到过这个问题吗?
I am trying to break execution with Debug points in a Visual Studio extension running against a Visual Studio 2010 Experimental Instance.
For some reason, when trying to break execution, I receive an error:
"Unable to break execution. This process is not currently executing the type of code that you selected to debug."
Oddly enough, I can debug without any problem in a Visual Studio 2005, and 2008 Experimental Instance.
Has anyone else ran into this with VS 2010?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来问题在于您设置为仅调试 VS 2010 项目文件中的托管代码。如果您设置为仅调试托管,如果 VS 当前正在执行本机代码(VS 大部分时间都花在本机代码上),您将收到此消息。
要解决此问题,请执行以下
It sounds like the problem is that you're setup to debug only managed code in your VS 2010 project file. If you're setup to debug only managed you'll get this message if VS is currently executing native code (VS spends a good portion of it's time in native code).
To fix this do the following
我重新安装了 Visual Studio 2010 和 SDK。起初这似乎有效,但在更改源文件并启动调试器后,我无法再次中断执行。
我转到“工具”->“选项”并取消选中“仅在运行时构建启动项目和依赖项”。这解决了它!这肯定与同时支持VS2008和VS2010的扩展解决方案有关。
I re-installed Visual Studio 2010 and the SDK. This seemed to work at first, but after changing a source file and launching the Debugger, I was unable to break execution yet again.
I went to Tools->Options and unchecked 'Only build startup projects and dependencies on Run'. This fixed it! This must have something to do with an extension solution that supports both VS2008 and VS2010.