Intelliji的想法在调试模式下非常慢,并且在正常模式下可以完美运行 [英] Intelliji idea is very slow in debug mode and it is running perfectly in normal mode

查看:170
本文介绍了Intelliji的想法在调试模式下非常慢,并且在正常模式下可以完美运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Intelliji的想法在调试模式下非常慢,并且在正常模式下可以完美运行.

Intelliji idea is very slow in debug mode and it is running perfectly in normal mode.

我已经尝试通过在/etc/hosts文件中设置以下内容 sudo nano/etc/hosts并添加这两个条目.

I already tried by setting the below thing in /etc/hosts file sudo nano /etc/hosts and add these two entries.

127.0.0.1 .local :: 1 .local

127.0.0.1 .local ::1 .local

但这对我没有用.

对此的任何帮助都受到高度重视.

Any help on this is highly regarded.

推荐答案

删除断点并在方法中使用断点,因为这可能导致调试花费很长时间.

Remove breakpoints off your method and use them inside the method as that can cause your debug to take a very long time.

尝试以管理员身份运行IntelliJ.我在工作时遇到了这个问题,调试速度非常慢,而以admin身份运行实际上使速度大大提高了.

Try running IntelliJ as admin. I had this issue at work where debugging was extremely slow and running as admin actually made it a lot faster.

方法断点可能会大大减慢调试速度

IntelliJ团队有一个简单的解释:由于JVM设计,方法断点将大大降低调试器的速度,评估起来很昂贵"

There is a simple explanation from the IntelliJ Team: "Method breakpoints will slow down debugger a lot because of the JVM design, they are expensive to evaluate"

https://intellij-support.jetbrains.com/hc/en-us/articles/206544799-Java-slow-performance-or-hangups-when-starting-debugger-and-stepping a>

这篇关于Intelliji的想法在调试模式下非常慢,并且在正常模式下可以完美运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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