即使附加到代理后,NUnit 2.5.7 断点仍然没有命中 (VS2010)
我在VS2010下调试时遇到断点问题 NUnit 最近推荐版本 2.5.7 我已经尝试了 Stack Overflow 上回复建议的各种方法:
- 附加到 NUnit-agent.exe
- 运行时正确选择为 4.0
- 附加到 Nunit.exe,甚至不调试符号
附加到 nunit-agent.exe 时,符号似乎正在加载;然而 测试完成,无需命中断点。
有人见过这个问题吗?
I am having a problem hitting the break point in debugging under VS2010 under
NUnit recent recommended release 2.5.7
I have tried various ways as recommended by responses on Stack Overflow:
- Attach to NUnit-agent.exe
- Run time is correctly selected to 4.0
- Attaching to Nunit.exe which does not even debug symbols
When attaching to the nunit-agent.exe, the symbols seem to load; however the
test completes w/o hitting the breakpoint..
Anyone seen this problem??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您使用正确的框架版本。 .Net 4 太高了,所以尝试使用 .Net 3.5
另外,不要为附加到进程的麻烦而烦恼。那很快就会变老。相反,请转到单元测试项目的属性,然后在“调试”选项卡中,将“启动外部程序:”设置为指向 nunit.exe,然后在“命令行参数”文本框中添加输出 dll 名称(例如 UnitTests .dll)
Make sure you're using the right framework version. .Net 4 is too high, so try using .Net 3.5
Also, don't bother with the hassle of attaching to a process. That gets old very quickly. Instead, go to the properties for your unit test project, and and the Debug tab, set "Start external program:" to point to nunit.exe, and add the output dll name in the "Command line arguments" text box (eg UnitTests.dll)
附加到
nunit-agent.exe
,而不仅仅是nunit.exe
。我不知道为什么,但它会导致断点工作Attach to
nunit-agent.exe
, not justnunit.exe
. I don't know why but it will cause breakpoints to work