I got the project written in WPF + C# in VS2010 and when i start it by pressing F5 (but not Ctrl-F5, that works normal), the program itself starts lagging and task manager shows that in High Priority msvsmon.exe consumes almost all the CPU. But it happens when i press buttons, type in textboxes and so on.
So how to turn it off?
The remote debugger is also used in non-remote debugging scenarios. When your program runs in 64-bit mode for example. VS is a 32-bit program, it uses the remote debugger to debug the program in that case.
You can avoid it by forcing your program to run in 32-bit mode. Project + Properties, Compile tab, change the Platform target setting to x86. Also enables Edit and Continue, nice.
Seeing msvsmon.exe consuming so much cpu cycles is unhealthy of course. Hard to guess what might cause it. Check for a storm of handled exceptions, you'll see their first-chance notification in the Output window. Debug + Exceptions, tick the Thrown checkbox to make the debugger stop on them. But that's just a guess.