Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off remote debugging in Visual Studio 2010?

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?

like image 505
AgentFire Avatar asked Dec 11 '11 11:12

AgentFire


People also ask

How do I disable debugging in Visual Studio 2010?

Select Stop debugging from Debug menu to end a debugging session. You also can stop debugging from the processes window. In that window, right-click the executing process and select the Detach Process or Terminate Process command.

How do I disable remote debugging in Visual Studio?

05 On the General settings panel, under Debugging, select Off next to Remote debugging setting to disable remote debugging using Microsoft Visual Studio for the selected Azure App Services web application. Click Save to apply the changes.

What is remote debugging in Visual Studio?

To debug a Visual Studio application that has been deployed on a different computer, install and run the remote tools on the computer where you deployed your app, configure your project to connect to the remote computer from Visual Studio, and then run your app.


1 Answers

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.

like image 73
Hans Passant Avatar answered Sep 18 '22 18:09

Hans Passant