IntelliJ debugger gets stuck

后端 未结 5 795
死守一世寂寞
死守一世寂寞 2021-02-02 07:38

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 \"C

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 08:33

    The following fixed it for me on IntelliJ 2018.2.4:

    • Right click breakpoint
    • Toggle the setting to suspend "Thread" instead of "All"

    This won't be helpful if you actually need to suspend all the threads for debugging, but it got rid of the "Collecting data..." and "Waiting until last debugger command completes" messages for me. The setting also persists for subsequent breakpoints, so you only need to change it once.

提交回复
热议问题