Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij remote debugging: change connection timeout

I'm trying to debug a machine that is located in China (very far from here) and the connection is very slow. The timeout of intellij remote debugger is short and therefore I'm getting Unable to open debugger port : java.net.ConnectException "Connection timed out: "

And I can't debug. Is it possible to increase the connection timeout? and how?

like image 290
axelrod Avatar asked Nov 04 '22 08:11

axelrod


1 Answers

Try add -Djava.net.connectiontimeout=<seconds> to <IDEA_install_path>/bin/idea.vmoptions and restart IDEA. But firstly ensure that port is opened and host is accessible, for example you can try to connect with telnet/another program.

like image 57
ice Avatar answered Nov 08 '22 05:11

ice