Search code examples
javadebuggingintellij-idea

IntelliJ debugger gets stuck


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.

enter image description here

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". enter image description here

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


Solution

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

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

    Re-run the debugger.