Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Idea remote debugger hangs

When I use remote debugger in IntelliJ to debug a Java application on server, it stops on breakpoints successfully but when I try to evaluate any expressions or variables it hangs and shows nothing (usually with "collecting data" message). From that point I can't even continue stepping through code anymore. I have to click resume so it at least runs, but it will never stop at other breakpoints too until I restart the debug session and usually even the Java application being debugged.

I can step through the code after stopping on breakpoint, also I see the variables in the debugger panel, it only starts to behave weirdly when I try to evaluate an expression or add a watcher. Then it stops working and restart of the debugger and the app is needed.

Did anybody experience something similar? Is it IntelliJ or server problem?

(sorry this is so vaguely described, but I have no idea what to share or what the problem might be)

like image 945
redhead Avatar asked Jul 14 '16 22:07

redhead


People also ask

Why is IntelliJ debugger so slow?

Debugger performance can be affected by the following: Method breakpoints will slow down debugger a lot because of the JVM design, they are expensive to evaluate. Remove method breakpoints and consider using the regular line breakpoints. To verify that you don't have any method breakpoints open .

How do I debug faster in IntelliJ?

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.

How do I get out of debug mode in IntelliJ?

Terminate a debugger sessionClick the Stop button in the Debug tool window. Alternatively, press Ctrl+F2 and select the process to terminate (if there are two or more of them).

How can I make IntelliJ faster?

Disable all unused plugins for example Struts 2 , Subversion Integration , UI Designer if you don't have deal with them. Also increase memory heap, for that I suggest you check following links: Tuning IntelliJ IDEA.


1 Answers

Expression evaluation during remote debug need more data to be sync then the other operations ( breakpoints add/remove, step managements ecc ). So this kind of issue should be just related to:

  • a slow connection
  • an huge complexity and amount of data involved into the operation to execute in the remote server
like image 167
gregorycallea Avatar answered Oct 11 '22 16:10

gregorycallea