c++ - vs 2013 : breakpoint into cppunittest test throws exception -
i testing c++11 static lib in vs 2013 environment. followed this nice tutorial , testing + code coverage working fine.
now need step-by-step : added breakpoints , executed "debug selected test" command , following message : vstest.executionengine.exe has triggered breakpoint , callstack brings me @ cppunittest.h:465
: (static_cast<thisclass *>(this)->*method2)();
, eg @ root call of method want break into. no way see code inside call.
my question : how break code during debugging ms cpp unit test ?
i found problem. breakpoints activated inside static lib used test dll. seems breakpoints inside static lib generates wrong test framework.
to reproduce :
- create c++ static lib project simple function,
int foo(){ return 0;}
- create test-dll project
- add test function calls
foo
- set breakpoint in
foo
- execute "run selected test" : work
- execute "debug selected test" : block before calling test-method test-generated class.
i still interested in explaining non-intuitive behaviour.
Comments
Post a Comment