• CMD运行时输入
--address:监控端口号
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6006 xxx.jar
  • Idea配置(Remote)
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005