Crashing VS2010 when trying to debug unit tests

I can successfully run unit tests with Nunit, but when I set a breakpoint on a line and debug a test method VS 2010 ends up crashing.
First I get a message box that appears that says:

"Windows has triggered a breakpoint in Jetbrains.resharper.taskrunner.clr4.exe
THis may be due to a corruption of the heap, which indicated a bug in jetbrains.resharper.taskrunner.clr4.exe or any of the dlls it has loaded.
This may also be due to the user pressing f12 while jetbrains.resharper.taskrunner.clr4.exe has focus"

The call stack is pointed at ntdll.dll

I then hit continue and I can step through the method but I receive lots of output from the output window. Once I get  to the last line in the method VS crashes and has to be restarted.
I'm hoping this is some configuration issue with symbol caches.
VS2010 Pro compiling project as x86 .Net 4 running on Win Server 2008 R2 x64.
I first used the version of nunit installed with resharper then I used a x86 version I built of nunit from source (I compiled Nunit as x86 and then copied the nunit.framework.dll file to my project and included that library as a reference).
I also checked  'Microsoft Symbol Servers' under symbol file locations in debug -> options -> symbols in VS. But I shouldn't have to do this right????

* it looks like the pdb file for JetBrains.ReSharper.TaskRunner.CLR4.exe is missing. I did a search and it wasn't found on my machine.


Here is some of the output from the output window in VS.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\JetBrains.ReSharper.TaskRunner.CLR4.exe', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\mscoree.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file

Windows has triggered a breakpoint in JetBrains.ReSharper.TaskRunner.CLR4.exe.

This may be due to a corruption of the heap, which indicates a bug in JetBrains.ReSharper.TaskRunner.CLR4.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while JetBrains.ReSharper.TaskRunner.CLR4.exe has focus.

The output window may have more diagnostic information.

The thread 'Win32 Thread' (0x12f0) has exited with code 0 (0x0).

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\msvcr100_clr0400.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\eb4e1e70734f6efb9c7de7ec5f452c9e\mscorlib.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\cryptsp.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\rsaenh.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\JetBrains.ReSharper.TaskRunner.CLR4.exe'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x63610000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x430000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x63610000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\RpcRtRemote.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\JetBrains.ReSharper.TaskRunnerFramework.dll'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System\998038f6db16151a1fb89a5457ec34f3\System.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Drawing\8613de6eb7403d38a61e0c04cfba44e1\System.Drawing.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\0c2124c01dced6cf8e3378fcc9e13ca8\System.Windows.Forms.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runtime.Remo#\5a842fc5fb0b78cf367a6ff20a9c54ab\System.Runtime.Remoting.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x5f370000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x470000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x5f370000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\JetBrains.ReSharper.UnitTestRunner.nUnit.dll'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml\287568d4edd5a5a08017c1ca63661528\System.Xml.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\e8dd6d34f3854bbde921a2e70d5f4cf0\System.Configuration.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\urlmon.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\iertutil.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\wininet.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\normaliz.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\secur32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x73060000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x57c0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x73060000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54b60000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x59e0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54b60000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x732f0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x1120000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x732f0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Core\7a175405af16786bf86d8ae5c9d5da00\System.Core.ni.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\bcrypt.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\shfolder.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54b40000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0xe90000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54b40000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\nunit.core.interfaces.dll'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54b10000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x4660000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54b10000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\nunit.core.dll'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54ae0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x4ea0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54ae0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\nunit.util.dll'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54ad0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x1190000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54ad0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x1190000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54ac0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x1190000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54ac0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54ad0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x11a0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54ad0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x1190000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\Administrator\AppData\Local\Temp\g0grlanj.jzr\UnitTestingTests\assembly\dl3\87015b9a\19962f42_a888cc01\UnitTestingTests.DLL', Symbols loaded.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54aa0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x5210000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54aa0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x54a70000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x5240000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x54a70000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x5210000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\Administrator\AppData\Local\Temp\g0grlanj.jzr\UnitTestingTests\assembly\dl3\2cc7819c\58e5edca_9888cc01\nunit.framework.DLL'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x4790000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x47a0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x4790000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x4790000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x4ed0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x4790000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x47a0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\Administrator\AppData\Local\Temp\g0grlanj.jzr\UnitTestingTests\assembly\dl3\f4ea9b1f\4e5e59d7_9a88cc01\UnitTestingExamples.EXE', Symbols loaded.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x62e90000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'ImageAtBase0x47a0000', Loading disabled by Include/Exclude setting.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x62e90000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\x86\Microsoft.VisualStudio.Debugger.Runtime.Impl.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Symbols loaded.

Step into: Stepping over non-user code 'UnitTestingExamples.Chuck.Chuck'

Step into: Stepping over non-user code 'NUnit.Framework.Assert.AreEqual'

The thread 'Win32 Thread' (0x1194) has exited with code 0 (0x0).

Step into: Stepping over non-user code 'NUnit.Core.Reflect.InvokeMethod'

Step into: Stepping over non-user code 'NUnit.Core.TestMethod.RunTestMethod'

Step into: Stepping over non-user code 'NUnit.Core.TestMethod.RunTestCase'

Step into: Stepping over non-user code 'NUnit.Core.TestMethod.RunTest'

Step into: Stepping over non-user code 'NUnit.Core.NUnitTestMethod.RunTest'

Step into: Stepping over non-user code 'NUnit.Core.TestMethod.RunRepeatedTest'

Step into: Stepping over non-user code 'NUnit.Core.TestMethod.RunTestInContext'

Step into: Stepping over non-user code 'NUnit.Core.TestMethod.Run'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunAllTests'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuite'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuiteInContext'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.Run'

Step into: Stepping over non-user code 'NUnit.Core.TestFixture.Run'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunAllTests'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuite'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuiteInContext'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.Run'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunAllTests'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuite'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuiteInContext'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.Run'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunAllTests'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuite'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.RunSuiteInContext'

Step into: Stepping over non-user code 'NUnit.Core.TestSuite.Run'

Step into: Stepping over non-user code 'NUnit.Core.SimpleTestRunner.Run'

Step into: Stepping over non-user code 'JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTestRunner.Run'

Step into: Stepping over non-user code 'JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTaskRunner.ExecuteRecursive'

Step into: Stepping over non-user code 'JetBrains.ReSharper.TaskRunnerFramework.CurrentAppDomainHost.Execute'

Step into: Stepping over non-user code 'JetBrains.ReSharper.TaskRunnerFramework.CurrentAppDomainHost.DoExecuteNodes'

Step into: Stepping over non-user code 'JetBrains.ReSharper.TaskRunnerFramework.CurrentAppDomainHost.ExecuteNodes.AnonymousMethod__0'

The thread '<No Name>' (0x1324) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1324) has exited with code 0 (0x0).

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0xe90000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x4660000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x4ea0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x11a0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x5240000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x4ed0000'

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Unloaded 'ImageAtBase0x47a0000'

The thread 'Win32 Thread' (0xc70) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x10a0) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1260) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1238) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1188) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x12bc) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0xc64) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1298) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0xd78) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x11b4) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1118) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1210) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x13f0) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0xc58) has exited with code 0 (0x0).

The thread 'Win32 Thread' (0x1380) has exited with code 0 (0x0).

The program '[4168] JetBrains.ReSharper.TaskRunner.CLR4.exe: Native' has exited with code 0 (0x0).

The program '[4168] JetBrains.ReSharper.TaskRunner.CLR4.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

5 comments

Hello Chuck,

Could you please perform an experiment:

1. Create a new Class Library project in your solution
2. Make it a Startup Project
3. In the project properties, on the Debug tab set up nunit-console.exe as
the target with the corresponding command line arguments, so that it runs
your unit tests
4. Check if debugging your tests this way doesn't crash Visual Studio.

Let me know the results. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I can successfully run unit tests with Nunit, but when I set a
breakpoint on a line and debug a test method VS 2010 ends up crashing.
I can step through the method but I receive lots of output from the
output window. Once I get  to the last line in the method VS crashes
and has to be restarted.

I'm hoping this is some configuration issue.

Here is some of the output from the output window in VS.

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded 'C:\Program Files
(x86)\JetBrains\ReSharper\v6.0\Bin\JetBrains.ReSharper.TaskRunner.CLR4
.exe', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded
'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded
'C:\Windows\SysWOW64\mscoree.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded
'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file

'JetBrains.ReSharper.TaskRunner.CLR4.exe': Loaded
'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file

Windows has triggered a breakpoint in
JetBrains.ReSharper.TaskRunner.CLR4.exe.

This may be due to a corruption of the heap, which indicates a bug in
JetBrains.ReSharper.TaskRunner.CLR4.exe or any of the DLLs it has
loaded.

This may also be due to the user pressing F12 while
JetBrains.ReSharper.TaskRunner.CLR4.exe has focus.

---
Original message URL:
http://devnet.jetbrains.net/message/5321982#5321982



0

Hi Andrey.
I set the debug option to point to nunit-console.exe, but didn't know
what arguments to use so I left that blank.
I'm also using the nunit.framework.dll from the nunit folder I
installed v2.5.10.11092.
I'm not sure if I should be using the nunit.framework.dll from the
jetbrains dir, but I tried that as well and my results were the same.
When I ran the debugger VS didn't stop at my breakpoint in the test method, but didn't crash VS and finished but it didn't look like it completed.
Just to recap here is my setup.
1. Win Server 2008 R2 x64
2. VS 2010 Pro x64
3. Latest version of resharper

4. I set all projects to x86 in VS

I will include my project as an attachment in this email for you to
look at and try and run if you want.


*One thing I noticed was that Jetbrains installed resharper into c:\program files(x86), does that mean it doesn't support x64 bit apps like VS x64?
*another note-I have the debugging for unit tests working just fine on my Win7 x32 bit machine at work. Tonight I will try to run it on my Win7 x64 bit machine at home.



Attachment(s):
UnitTestingExamples.zip
0

Hi.
Is there any update to my post?
I tried debugging unit tests from a Win 7 x64 bit machine and JetBrains crashed again.
Is there any update or fix for this?
If not who can I contact to get a refund or credit towards the next version that hopefully works?

0

Hello Chuck,

Sorry for delayed response! It looks like the console runner didn't run your
tests (since you've passed no command line arguments). Could you please try
the same steps but with the original NUnit GUI executable, open your test
assembly when NUnit GUI starts and run those tests from NUnit GUI, so that
Visual Studio breaks on a breakpoint in your tests?

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi.
Is there any update to my post?
I tried debugging unit tests from a Win 7 x64 bit machine and
JetBrains crashed again.
Is there any update or fix for this?
If not who can I contact to get a refund or credit towards the next
version that hopefully works?
---
Original message URL:
http://devnet.jetbrains.net/message/5323707#5323707



0

Hi Andrey.
Ok I think I found what was going on. VS is not crashing anymore when trying to debug.

Here is what I did.
1. I noticed that Nunit was installed in the program files (x86) folder. So I downloaded the nunit source and compiled under x64 bit.
2. In my VS project I referenced the built x64 nunit.framework.dll from my compiled nunit project.
3. I compiled my test project as x64.

That was it!

I'm not sure if resharper doesn't like a x86 version of Nunit or if it was a Nunit issue.
Overall I can say that everything has to be running under x64 if you are on a x64 OS with a x64 VS like I am.

Thanks for all your help!

0

Please sign in to leave a comment.