What are Java command line options to set to allow JVM to be remotely debugged?

后端 未结 8 2672
猫巷女王i
猫巷女王i 2020-11-22 06:37

I know there\'s some JAVA_OPTS to set to remotely debug a Java program.

What are they and what do they mean ?

8条回答
  •  孤城傲影
    2020-11-22 07:00

    -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=PORT_NUMBER
    

    Here we just use a Socket Attaching Connector, which is enabled by default when the dt_socket transport is configured and the VM is running in the server debugging mode.

    For more details u can refer to : https://stackify.com/java-remote-debugging/

提交回复
热议问题