http://blog.csdn.net/wangxiaoyan__/article/details/59106713
window system
new directory under the bin directory tomcat debug.bat, edits as
SET = 8000 JPDA_ADDRESS
SET = the dt_socket JPAD_TRANSPORT
the SET -Xdebug -Xnoagent -Djava.compiler the CATALINA_OPTS = -server = NONE -Xrunjdwp: Transport the dt_socket =, = Server y, suspend = n, address = 8899
startup
Note that the 8899 is the port you need to listen to, then start the debug.bat and double-click.
Then you can debug in idea. For specific idea how to configure idea, see the one I configured springboot in the last article.
Pro test available