IDE to Remote Debugger: Extend Connection Timeout

Answered

I want to globally configure the connection timeout for when my IDE connects to the debugger. Is this correct – I cannot find any official documentation. I added the following to my `idea.vmoptions` file:

-Didea.connection.timeout=200000
 

0
1 comment

Option  -Didea.connection.timeout is the IDE's HTTP client timeout (example to check plugin repository, update checks), not the debugger's. IntelliJ IDEA passes timeout=0 to the JDWP connector for both attach and listen, so it already waits forever. The only timeout on this path belongs to the JVM you’re debugging. So you can drop timeout= from its agent options, and it keeps listening until you connect or set it 

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

Refer: VM Invocation Options and run config vm options

0

Please sign in to leave a comment.