IDEA 远程调试 Remote JVM Debug
IDEA中可以使用 remote jvm debug进行程序的远程调试
1. IDEA配置Remote JVM Debug
在IDEA中可以点击Run/Debug Configurations, 再点击"+"号添加一个Remote JVM Debug,并填写远程服务器的IP地址和端口号

2. 使用参数运行程序
参数
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005