typemock

Debugging Typemock test case in Visual Studio 2015 throws TypeMockException


In Visual Studio 2015, when I attempt to debug a test that uses Typemock (and I use the Visual Studio Test Explorer, not Typemock's SmartRunner), on the first call to a Typemock method I get the following exception:

TypeMock.TypeMockException occurred HResult=-2146233088
Message=
*** Typemock Isolator is currently disabled. Enable using the following:

  • Within Visual Studio:
    • Use Typemock Smart Runner
    • For other runners, Choose Typemock Menu and click "Integrate with Other Runners"
      • To run Typemock Isolator as part of an automated process you can:
      • run tests via TMockRunner.exe command line tool
      • use 'TypeMockStart' tasks for MSBuild or NAnt

I've followed the instructions and verified that:

Also,

Question: What is causing this problem and how do I fix it?


Solution

  • The IntelliTrace functionality does not work with Typemock. Disabling IntelliTrace in the Visual Studio options (Options->IntelliTrace->General->Enable IntelliTrace) works around the issue.

    See: