调试 Moles 时出现问题

发布于 2024-09-15 09:57:32 字数 632 浏览 2 评论 0原文

我使用的是 Visual Studio 2008 和 Moles 版本 0.93。一切都运行良好,除非我尝试调试任何使用 Moled 类型的测试。测试跳过了我所有的断点。我在输出窗口中收到以下消息:

无法附加。检查以下情况之一。

  1. 您尝试调试的应用程序使用的 Microsoft .NET Framework 版本不受调试器支持。

  2. 调试器对应用程序将使用的 Microsoft .NET Framework 版本做出了错误的假设。

  3. 您指定用于调试的 Microsoft .NET Framework 版本不正确

请参阅 Visual Studio .NET 调试器文档以正确指定 Microsoft .NET Framework您的应用程序将用于调试的版本。

如果我尝试 debbuger.Break (),我会收到一条消息:“没有为任何调用堆栈帧加载任何符号。无法显示源代码。”

我现在正处于紧要关头,正在追查我们的一个主要组件的问题,试图在无法逐步完成代码的情况下找出任何问题是一件痛苦的事情(就像我需要奴佛卡因一样)。

我想利用mole的“流畅的调试体验”。但是,我似乎根本无法连接调试器。

谢谢,

Bzz

I’m using visual studio 2008 and moles version 0.93. Everything works well except when I try to debug any test that uses a Moled type. The test skips all my breakpoints. And I get the following message in the output window:

Unable to attach. Check for one of the following.

  1. The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supported by the debugger.

  2. The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use.

  3. The Microsoft .NET Framework version specified by you for debugging is incorrect

Please see the Visual Studio .NET debugger documentation for correctly specifying the Microsoft .NET Framework version your application is going to use for debugging.

If I try debbuger.Break () I get a message: "No symbols are loaded for any call stack frame. The source code cannot be displayed."

I’m in a crunch right now chasing an issue with one our main components and it has been a pain (like I need novocaine) trying to figure anything out without being able to step through the code.

I want to take advantage of mole's "smooth debugging experience". However, I can't seem to get the debugger to attach at all.

Thanks,

Bzz

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

不必在意 2024-09-22 09:57:32

当我将项目从 Visual Studio 2010 移动到 Visual Studio 2008 时,我遇到了这个问题。以下是我修复该问题的方法。

关闭视觉工作室。导航到调试/bin 位置。删除以下文件:

  • *.vshost.exe
  • *.vshost.exe.config
  • *.vshost.exe.manifest

打开解决方案。转到项目设置。在“应用程序目标框架”下,选择一个低于您正在使用的框架的框架(稍后将其设置回来)。 Visual Studio 将自动关闭并重新打开您的项目。然后将目标框架设置回您正在使用的原始版本。全部重建,调试就可以正常工作了。

I had this problem when I moved a project from Visual Studio 2010 to Visual Studio 2008. Here's what I did to fix it.

Close Visual Studio. Navigate to the Debug/bin location. Delete the following files:

  • *.vshost.exe
  • *.vshost.exe.config
  • *.vshost.exe.manifest

Open the solution. Goto the project Settings. Under the Application Target Framework, select a framework lower than the one you are working with (you'll set it back later). Visual Studio will close and re-open your project automatically. Then set the Target Framework back to the original version you were working with. Rebuild all, and debugging will work properly.

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