chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Why can't I use the 'Edit and Continue' feature of Visual Studio when TypeMock.NET is enabled?
asked by jehunter (600 points)

21 Answers

0 votes
Can you tell me if this issue was fixed in v5.20?

I don't use the product on my development machine because if this problem, so I really hope it will be fixed soon (if it's not already fixed)

Regards,
Martin.
answered by MartinH (3.2k points)
0 votes
Hi Martin,

We had some work done on the edit and continue issue but due to time constraints were not able to add it to v5.20.
answered by dhelper (11.9k points)
0 votes
Can you tell me if this issue has been resolved in the latest versions of Typemock?

Thanks,
MartinH.
answered by MartinH (3.2k points)
0 votes
Hi Martin,

After long investigation we found out that the CLR disables the edit and continue feature when a profiler (like the Isolator) is connected.
Currently we can't find a way to solve this.

The only workaround is to disable the Isolator from the VS 'Typemock' menu before you start debugging.
answered by ohad (35.4k points)
0 votes
There is a good solution with our partner, the TestDriven.NET addin.
answered by eli (5.7k points)
0 votes
Ohad:

This is *exactly* my problem, even with Typemock disabled I still can't use Edit & Continue, I wish I could as this would be a simple solution to my problem.

As I can't disable it, and use Edit & Continue frequently, I have to uninstall Typemock, and I find myself not using the product.

An I doing something wrong? My OS is Vista x64 in Spanish.

Regards,
Martin.
answered by MartinH (3.2k points)
0 votes
Hi Martin,

Are you debugging with TestTriven.NET?
With TD.NET edit and continue is disabled by default since it attaches the debugger to a running process. You can change this behavior of TD.NET by assigning a shortcut key to 'TestDriven.NET.DebuggerEaC'
From Visual Studio Tools -> Options -> Envinronment -> Keyboard.
This will allow you to debug projects that are not linked with the Isolator assemblies.

The newer versions of TD.NET enables the Isolator automatically when it notices a project is linked with the Isolator assemblies.
The result is that you can't use edit and continue even if the code does not uses the Isolator API and the Isolator is disabled.
We are working with TD.NET guys to solve this.

Hope it helps.
answered by ohad (35.4k points)
0 votes
Ohad:

No I'm not using TestDriven.NET.

I have noticed though, if I disable Typemock *before* loading the solution I can use Edit & Continue, but once the solution has been loaded I can't toggle the Edit & Continue feature by using the Enable/Disable menu item.

Regards,
Martin.
answered by MartinH (3.2k points)
0 votes
Hi Martin,

Can you please post the error message you get?
Also please tell me how do you build the assemblies? (AnyCPU, x64, x86)
And how do you run the debugger? (are you using a test runner or using Visual Studio start debug option)
answered by ohad (35.4k points)
0 votes
Ohad:

Hi Martin,

Can you please post the error message you get?
Also please tell me how do you build the assemblies? (AnyCPU, x64, x86)
And how do you run the debugger? (are you using a test runner or using Visual Studio start debug option)


1) No 'error' message as such, it's just when I want to modify code once a breakpoint has been hit, it tells me there is a profiler running and modification is not possible.

2) My assemblies are all build for x86.

3) Just press F5. I'm not running Unit Tests when this happens.

Just a quick update though, I have tried TestDriven.Net and this solves my problem (so I have purchased it). I set Typemock to not auto-startup (via the Tools | Add-in manager in VS) so TypeMock is not enabled. When I run my Unit Tests TestDriven.Net activates Typemock and runs the tests. Upon completion TypeMock is disabled again. Perfect.

This solves my problem.

Thanks for all your help and advise.

Regards,
Martin.
answered by MartinH (3.2k points)
...