当前位置: 首页 > news >正文

IntelliJ idea卡顿解决,我遇到的比较管用的方案

Setttings> Build, Execution,Deployment>Debugger> Data Views> Java

取消 Enable "toString()" object view;


Speed up debugging in IntelliJ

Yesterday, I observed painfully slow debugging in IntelliJ. Every step over or step in took almost 10 seconds to perform.

It was a simple Java console application having about some 88k entries in few arrays. I had successfully debugged applications having millions of entries in arrays, lists and maps before without any performance issues.

Then I looked at the toString() implementation of the custom object which I was holding in the array

 public String toString() {StringBuilder s = new StringBuilder();s.append(V + " vertices, " + E + " edges " + NEWLINE);for (int v = 0; v < V; v++) {s.append(String.format("%d: ", v));for (int w : adj[v]) {s.append(String.format("%d ", w));}s.append(NEWLINE);}return s.toString();}

This toString() implementation was looping over all the 88k items and IntelliJ is configured to evaluate toString() after every step.

Turning off the setting Enable toString() data views solved this problem of slow debugging.

Incase you are experiencing slow debugging issues on IntelliJ, do make sure that this setting is turned off.

参考:

Speed up debugging in IntelliJ – Madhur Ahuja

http://www.lryc.cn/news/255572.html

相关文章:

  • Fabric.js 实战开发使用介绍
  • Vue.directive
  • webpack优化打包速度
  • ALTERNET STUDIO 9.1 Crack
  • 基于Java技术的选课管理系统设计与实现
  • 在UBUNTU上使用Qemu和systemd-nspawn搭建RISC-V轻量级用户模式开发环境
  • JAVA使用POI向doc加入图片
  • 反向传播算法
  • 记录 | ubuntu降低内核版本的方法
  • MX6ULL学习笔记 (八) platform 设备驱动实验
  • 初识Linux:权限(2)
  • 测试环境使用问题及其优化对策实践
  • 【力扣】206.反转链表
  • Python:核心知识点整理大全7-笔记
  • Hadoop学习笔记(HDP)-Part.15 安装HIVE
  • 【力扣100】4.移动零
  • Filebeat使用指南
  • 【Vue2】Vue的介绍与Vue的第一个实例
  • 十五届蓝桥杯分享会(一)
  • 原生video设置控制面板controls显示哪些控件
  • openlayers地图使用---跟随地图比例尺动态标绘大小的一种方式2
  • C语言期末考试复习PTA数据类型及表达式-分支结构程序-循环结构-数组经典选择题
  • RHEL8_Linux访问NFS存储及自动挂载
  • python 使用 AppiumService 类启动appium server
  • HbuilderX使用Uniapp+Vue3安装uview-plus
  • 【Android】Java NIO(New I/O)的`Selector`类来实现非阻塞的Socket监听
  • 『亚马逊云科技产品测评』在当前飞速发展的AI人工智能时代云服务技术哪家强?
  • 经典神经网络——ResNet模型论文详解及代码复现
  • OpenCV-Python:DevCloud CodeLab介绍及学习
  • 如何在Linux环境搭建本地SVN服务器并结合cpolar实现公网访问