问题
After short time while debugging my project using breakpoints Visual studio 2019 Professional almost stops responding and slows down very much. From activity manager I noted an ever increasing memory usage that could be the cause.
Debugging the same project using Visual Studio 2015 is instead very fast. Haven't tried 2017.
I have checked "Enable just my code".
My project is just plain C# without DB and Web.
Thanks.
回答1:
While debugging I realized that slow debugging was related to Diagnostic Tools.
When VS 2019 slowed I stopped debugging, open Diagnostic Tools Window Tab and in Setting (gear) I checked / unchecked, when necessary, the checkboxes 'Memory Usage' 'CPU Usage'.
Finally, I solved unchecking 'Enable Disgnostic Tools While Debugging' in Options ---> Debugging ---> General.
VS 2019 version 16.3.6
来源:https://stackoverflow.com/questions/58555473/visual-studio-2019-causing-slow-debugging-and-high-usage-of-memory