未命中附加到 NUnit 的断点

发布于 2024-10-09 00:58:49 字数 286 浏览 6 评论 0原文

我在 Windows 7 64 位、Visual Studio 2010 Premium 上使用最新的 NUnit 2.5.9,项目是 .Net 3.5。

问题是我附加到 NUnit(没有出现 nunit-agent),并且符号正在加载,但我的断点没有被击中。断点旁边没有错误指示器指示出现问题。

第一次运行似乎需要一些时间才能开始测试,但此后的后续运行似乎几乎立即完成。我认为是因为 StructureMap (我正在测试的对象所需)已经完成了它的工作,不需要重复该设置。

关于如何解决这个问题有什么想法吗?

I'm using the latest NUnit, 2.5.9, on Windows 7 64-bit, Visual Studio 2010 Premium, and the projects are .Net 3.5.

The problem is that I attach to NUnit (there is NOT an nunit-agent appearing), and symbols are loading, but my break points aren't being hit. There is no error indicator next to the breakpoint indicating something is wrong.

The first run seems to take some time to start the test, but subsequent runs after that seem to complete almost instantly. I assume because StructureMap (required for the objects i'm testing) has already done its thing and doesn't need to repeat that setup.

Any ideas on how to fix this?

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

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

发布评论

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

评论(1

淤浪 2024-10-16 00:58:49

我大概找到了答案。我将所有设置重置为标准 Visual C# 开发设置,调试突然又恢复正常了。

我不确定哪种设置让一切回到了正轨;我没有看到“调试设置时禁用调试”。

I sort of figured out the answer. I reset all of my settings to the standard Visual C# Development Settings and debugging suddenly works again.

I'm not sure which setting got everything back on the right track; I didn't see a "disable debugging while debugging setting."

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