← Back to team overview

nunit-core team mailing list archive

[Bug 655057] Re: Can't debug in VS2010 for prokects built with .NET 4

 

This bug appears to have been filed against NUnit 3.0 in error, since it
references NUnit 2.5.7. I'm changing it to the NUnitV2 project so it's
in the right place.

The bug is also a "Won't Fix" since it is caused by the fact that
nunit.exe has to start a separate process  to run the tests under .NET
4.0. In order to debug, you have to attach to that process. This is the
reason that changing to .NET 3.5 allows you to debug. When running under
resharper, you are using JetBrains own code, so the problem doesn't
arise.

** Project changed: nunit-3.0 => nunitv2

** Changed in: nunitv2
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/655057

Title:
  Can't debug in VS2010 for prokects built with .NET 4

Status in NUnit V2 Test Framework:
  Won't Fix

Bug description:
  I have a VS2010 solution with projects built using the .NET 4
  framework. I have the debug options set to run nunit.exe and load my
  unit test project.

  However, even when setting the runtime in NUnit 2.5.7 to use that
  framework, breakpoints are not hit in VS2010.

  If I set the projects in my VS solution to use .NET 3.5, all is well,
  and breakpoints are hit.

  Resharper runs the tests and stops at the breakpoints, even when the
  VS projects use .NET 4

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/655057/+subscriptions


References