Visual Studio 2010 扩展 - 无法中断实验实例中的执行

发布于 2025-01-06 02:49:55 字数 339 浏览 0 评论 0原文

我正在尝试使用针对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦中的蝴蝶 2025-01-13 02:49:55

听起来问题在于您设置为仅调试 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

  • Right Click on the project and select Properties
  • Go to the Debug Tab
  • Check "Enable unmanaged code debugging"
阳光下的泡沫是彩色的 2025-01-13 02:49:55

我重新安装了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文