在启动代码里面加上如下两句:

-Xdebug
-Xrunjdwp:transport=dt_socket, address=8000,server=y,suspend=n