Visual Studio 2019导致调试缓慢和内存使用率高 [英] Visual studio 2019 causing slow debugging and high usage of memory

查看:573
本文介绍了Visual Studio 2019导致调试缓慢和内存使用率高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用断点调试我的项目很短时间后,Visual Studio 2019 Professional几乎停止响应并且非常慢.在活动管理器中,我注意到内存使用量不断增加,这可能是造成这种情况的原因.

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.

使用Visual Studio 2015调试同一项目非常快.还没尝试过2017年.

Debugging the same project using Visual Studio 2015 is instead very fast. Haven't tried 2017.

我已选中仅启用我的代码".

I have checked "Enable just my code".

我的项目只是没有数据库和Web的普通C#.

My project is just plain C# without DB and Web.

谢谢.

推荐答案

在调试时,我意识到缓慢的调试与诊断工具有关.

While debugging I realized that slow debugging was related to Diagnostic Tools.

当VS 2019速度变慢时,我停止了调试,请打开诊断工具窗口"选项卡,然后在设置(齿轮)"中选中/取消选中复选框",必要时选中内存使用情况""CPU使用情况".

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版本16.3.6

VS 2019 version 16.3.6

这篇关于Visual Studio 2019导致调试缓慢和内存使用率高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆