Can I change debug options?
已回答
When I debug a Java application, intelliJ automatically adds the option:
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63208,suspend=y,server=n
Is there any way I can add a timeout option to this? I'm trying out the javeleon class reloader and it introduces quite a delay to the VM startup so the debugger connection is refused. I need to increase the timeout so it waits for the VM to startup.
For example, I'd like the agentlib option to look like this:
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63208,suspend=y,server=n,timeout=10000
I don't see any config option to change this.
Thanks
Curtis
请先登录再写评论。
I am also facing the same issue, where trying to debug remotely. This property is set default and overrides even if it is set in VM options. Please let me know
@Manjunath Angadi you need to use attach mode for the remote JVM arguments for the Remote JVM Debug configuration. Then you will be able to start the remote debug configuration that will wait for the remote JVM to be available and attach to it when it is ready. Check the Tutorial: Remote debug.