IntelliJ调试器卡住

IntelliJ调试器卡住

问题描述:

发生问题时,我正在调试普通的Java应用程序,没有GUI,只有大量计算,并且在主线程的堆栈中约有5次调用。基本上,它总是在局部变量监视中说收集数据。

I'm debugging a normal Java application, no GUI, just a lot of computations and ~5 calls in the stack for the main thread when the problem occurs. Basically it keeps saying "Collecting data" in the local variable watch.

因此,我没有逐步进行操作,而是尝试在按恢复后立即添加断点。现在,它显示正在等待最后一个调试器命令完成。

So instead of going step-by-step I've tried to add a breakpoint immediately after an press "Resume". Now it says "Waiting until last debugger command completes".

有人曾经遇到过此问题吗?

Have anyone had this problem before? Is changing the debugger the only way to figure this out?

在IntelliJ(2017.1.4 Community Edition)上,已修复以下问题:我遇到的问题:

On IntelliJ (2017.1.4 Community Edition), the following fixed the problem for me:


  • 文件->设置

  • 键入 toString

  • 导航到构建,执行,部署->调试器->数据视图-> Java

  • 找到启用'toString()'对象视图:复选框

  • 取消选中

  • File->Settings
  • Type in "toString"
  • Navigate to Build, Execution, Deployment->Debugger->Data views->Java
  • Find the "Enable 'toString()' object view:" checkbox
  • Uncheck the box

重新运行调试器。