How to debug a JSP tomcat service using eclipse?

前端 未结 4 1684
闹比i
闹比i 2021-02-15 14:21

I would like to debug my separately running JSP/Struts/Tomcat/Hibernate application stack using the Eclipse IDE debugger. How do I setup the java JVM and eclipse so that I can s

4条回答
  •  执念已碎
    2021-02-15 15:04

    For Tomcat 5.5 on Windows:

    Edit bin/startup.bat

    Find the line that reads:

    call "%EXECUTABLE%" start %CMD_LINE_ARGS%

    Replace it with these lines:

    set JPDA_ADDRESS=8000
    set JPDA_TRANSPORT=dt_socket
    call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%

提交回复
热议问题