Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2017 - Very slow (laggy) when debugging

When I debug my solution, vs 2017 is very laggy and slow it's like it has to operate something heavy in the background.

So it stops "responding" every 5 seconds for 2 seconds, which is very annoying. Any suggestions?

EDIT (tried suggestions):

  • Browser Link is turned off
  • Stopped customer feedback
like image 778
Muarl Avatar asked Mar 13 '17 12:03

Muarl


People also ask

Is debug slower than run?

Unfortunately, debugger speed has some runtime limitations, which can't be easily fixed. If your code does some high performance computations, Debugger will be at least 3 times slower than usual Run.

Why does Visual Studio lag so much?

You might have extensions installed that slow Visual Studio down. For help on managing extensions to improve performance, see Change extension settings to improve performance. Similarly, you might have tool windows that slow Visual Studio down.

Does Visual Studio slow down computer?

No. No app will slow down your computer unless you use it. Any app that you invoke will have an effect on RAM and processing, so they all “slow down” a computer. If you have enough resources (RAM, SSD, fast processor), you will not notice the effect.

How to fix Visual Studio 2017 that is lagging while debugging?

If you are using VS 2017 Enterprise edition, try disable IntelliTrace feature (Tools -> Options -> IntelliTrace) with this feature turned off, the laggy behavior went away even keeping the Diagnostic tools turned on (Tools -> Options -> Debugging -> Enable Diagnostic Tools while debugging)

Is Visual Studio 2017 running slow on my PC?

I have just installed Visual Studio 2017 on a PC having the following specifications: Intel Xeon E5-1600 v3 @ 3.50 GHz processor, 16 GB RAM and Windows 10 Pro 64-bit operating system. Although the PC performance is almost perfect, I usually encounter slowness problem in Visual Studio 2017 especially during build and debug processes.

Why is MSVC debugging so slow?

Sometimes adding a simple condition to a break point can slow down the debugging speed a lot. Just adding this in case it might help someone. Show activity on this post. workaround that I used was to run msvcmon.exe locally with admin mode before starting the debugger.

How to optimize visual studio performance?

Optimize Visual Studio performance 1 Upgrade Visual Studio. If you are currently using Visual Studio 2015, download Visual Studio 2017 or Visual Studio 2019 for free to check out its improved performance. 2 Extensions and tool windows. You may have extensions installed that are slowing Visual Studio down. ... 3 Hardware. ... 4 Help us improve. ...


2 Answers

After some additional investigation I found this thread Unchecking Enable Diagnostic Tools while debugging in Tools → Options → Debugging → General did the trick!

Unchecking Enable JavaScript debugging for ASP.NET in
Tools → Options → Debugging → General
makes a huge difference in performance.

like image 52
Muarl Avatar answered Oct 03 '22 21:10

Muarl


If disable Diagnostic Tools don't fix the problem try to disable IntelliTrace, Unchecking Enable IntelliTrace, in Tools -> Options -> IntelliTrace. Work for me.

like image 29
Lorenzo Ferri Avatar answered Oct 03 '22 21:10

Lorenzo Ferri