views:

41

answers:

1

Hello All,

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: 1) Attach to NUnit-agent.exe 2) Run time is correctly selected to 4.0 3) 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??

+1  A: 

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)

Jim Cooper