VS10调试器错误:测试主机进程意外退出 [英] VS10 debugger error: Test host process exited unexpectedly

查看:753
本文介绍了VS10调试器错误:测试主机进程意外退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS10中遇到了一些测试调试器的问题。所有测试都运行没有错误,但是当调试它中止时,我尝试读取对象数据。之后,此错误显示在摘要中:测试主机进程意外退出。



我无法看到有关错误的更多细节。如何访问/生成测试日志文件?或者甚至更好:有没有人遇到类似的问题?找到一个解决方案?






其他信息:



运行时测试数据在同一个libary程序集的对象上可用,只是一个类,我无法在运行时模式下访问。如果我使用断点:




  • 影响对象的每一行: - 我可以看到运行时数据和测试通过

  • 只有一个地方: - 测试将中止,没有数据可见

  • 无断点: - 测试运行并通过



测试过去直到最近才能正常工作。在问题发生之前,当我将项目分成解决方案文件夹进行了一些解决方案更改。我没有做任何应该影响代码的更改。将项目移回原来的文件夹并不能解决问题,所以我想知道 - 这是Visual Studio本身的一个错误吗?



这是我试过的到目前为止:




  • 重新构建和清理解决方案。

  • 关闭Visual Studio并重新启动系统。

  • 安装VS10 Service Pack 1

  • 重新安装Visual Studio 10

  • 在VS10 Ultimate和Premium上测试

  • 删除和重新生成解决方案文件

  • 删除所有断点

  • TraceAndTestImpact / Local.testsettings:Testing 超时>超时并将中止设置为30分钟。

  • TraceAndTestImpact / Local.testsettings:单元测试>大会定义的文件夹

  • TraceAndTestImpact / Local.testsettings:部署>启用部署目录和文件



我该如何解决?任何建议都是值得欢迎的。

解决方案

这里最有可能发生的一个事情是,当地人或汽车窗口在运行过程中引起副作用,导致故障。要验证这一点,您应该关闭自动属性评估




  • 工具 - >选项

  • 转到调试器菜单

  • 取消选中启用属性评估和其他隐式函数调用


I have been having some problems with the test debugger in VS10. All tests are running without error, but when debugging it aborts when I try to read the object data. Afterwards, this error is displayed in the summary: Test host process exited unexpectedly.

I'm unable to see anymore details about the error. How do I access/generate test-log files? Or, even better: Has anyone experienced a similar problem? And found a solution?


Additional information:

The runtime-test-data is available on objects from same libary assembly, it's just one class I can't get access to in runtime mode. If I use breakpoints at:

  • every line that affects the object: - I can see the runtime-data and the test passes
  • only one place: - the test will abort and no data is visible
  • no breakpoints: - the test runs and passes.

The test used to work fine until recently. Just before the problem occurred when I made some solution changes with dividing the projects into solution folders. I didn't make any changes that should affect the code. Moving the projects back to their original folder don't solve the problem, So I wonder - Is this a bug in Visual Studio itself?

Here is what I've tried so far:

  • Rebuilding and cleaning the solution.
  • Closing Visual Studio and rebooting my system.
  • Installing VS10 Service Pack 1
  • Reinstalling Visual Studio 10
  • Testing on VS10 Ultimate and Premium
  • Removing and regenerating solutions files
  • Removing all break points
  • TraceAndTestImpact/Local.testsettings: Testing Timeout > timeout and setting abort to 30 minutes.
  • TraceAndTestImpact/Local.testsettings: Unit Test > Assembly folders defined
  • TraceAndTestImpact/Local.testsettings: Deployment > Enable deployment directories and files

How can I fix this? Any suggestions are welcome.

解决方案

What's most likely happening here is that a property, local which is being evaluated in the locals or autos window is causing a side effect in the running process which leads to the failure. To verify this you should turn off automatic property evaluation

  • Tools -> Options
  • Go to the Debugger menu
  • Uncheck "Enable Property evaluation and other implicit function calls"

这篇关于VS10调试器错误:测试主机进程意外退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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