Visual Studio does not debug when debugging unit tests?

Nick Kahn picture Nick Kahn · Dec 19, 2011 · Viewed 10.2k times · Source

I have bunch of unit test I'm testing and I put the breakpoint on the unitest code and when I run with CTL+R,T instead of stopping on the breakpoint it just execute the code and I'm trying to debug the unittest code because its failing. Any help?

I'm using VS 2010 professional version.

Answer

paulsm4 picture paulsm4 · Dec 19, 2011

Visual Studio 2010 test not entering debugger on exception

Make sure you are doing "Test->Debug" or "Debug test"/"Debug selected test". Just running tests with configuration set to Debug will not attach debugger to the running test.

'Hope that helps