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

后端 未结 8 2676
猫巷女王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:02

    Since Java 9.0 JDWP supports only local connections by default. http://www.oracle.com/technetwork/java/javase/9-notes-3745703.html#JDK-8041435

    For remote debugging one should run program with *: in address:

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

提交回复
热议问题