VS 2010,NUnit的,和"断点将目前尚未受到打击。无符号已加载这个文件" [英] VS 2010, NUNit, and "The breakpoint will not currently be hit. No symbols have been loaded for this document"

查看:201
本文介绍了VS 2010,NUnit的,和"断点将目前尚未受到打击。无符号已加载这个文件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Windows 7 32位,VS 2010,.NET 4的DLL,NUnit的(2.5.5)进行单元测试的应用程序。我目前收到以下错误;看到很多帖子和尝试了以下内容:

Using Windows 7 32 bit, VS 2010, .NET 4 DLL, NUnit (2.5.5) to unit test the application. I'm currently getting the following error; seen plenty of posts and tried the following:

  1. 重启机器
  2. 重新启动VS
  3. 删除斌/ OBJ并重新加载
  4. 清洁/重建

但我不能让NUnit的运行的时候打我的断点;

But I cannot get NUnit to hit my breakpoints when running;

我设置NUnit的测试项目指向nunit.exe,并加载测试.NET 4的DLL,但是当我运行它没有找到断点,无符号已加载。我试着调试>窗口>模块,它甚至不显示我的单元测试项目时,我运行它。

I set the NUNit test project to point to the nunit.exe, and to load the testing .NET 4 DLL, but when I run it doesn't find the breakpoint, "no symbols have been loaded". I tried debug >windows > modules, it doesn't even show my unit testing project when I run it.

我发现这一点,使用NUnit的代理:<一href="http://groups.google.com/group/nunit-discuss/browse_thread/thread/5680d7def5b6982f">http://groups.google.com/group/nunit-discuss/browse_thread/thread/5680d7def5b6982f

I found this, to use the nunit agent: http://groups.google.com/group/nunit-discuss/browse_thread/thread/5680d7def5b6982f

不过,我得到一个错误,当我使用NUnit的代理了。我使用NUnit代理-x86.exe程序,但我得到发生System.FormatException和崩溃...

But I get an error when I use the nunit agent too. I was using nunit-agent-x86.exe, but I get a system.formatexception and it crashes...

有人能帮忙吗?

感谢。

推荐答案

该决议是:启动NUnit的独立,然后在VS 2010中,做调试>附加到进程,连接到NUnit的-agent.exe过程,而不是NUnit的过程。 NUnit的过程中仍然没有为我做的。

The resolution was: start NUnit stand alone, then in VS 2010, do debug > attach to process, and attach to the nunit-agent.exe process, not the nunit process. Nunit process still didn't do it for me.

这篇关于VS 2010,NUnit的,和&QUOT;断点将目前尚未受到打击。无符号已加载这个文件&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆