Java 9+ syntax for remote debugger:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
Java 8 不适用 *:port,应该使用:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
参考
- https://stackoverflow.com/questions/50344957/java-jdb-error-transport-error-202-gethostbyname-unknown-host