在JDK启动时,加入

-Xrunjdwp:transport=dt_socket,address=9900,server=y,suspend=n
-Dcom.sun.management.jmxremote.port=40124
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

选中项目,右键

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcGF1bHhpbjIwMDg=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">

点击Debug開始远程调试

04-24 23:08