debugging java application deployed in tomcat

后端 未结 7 1547
刺人心
刺人心 2021-02-01 03:31

I have an application that I deployed in tomcat. Later I configured the code as a project in Eclipse. I want to connect to the tomcat via eclipse and debug the application. Tryi

7条回答
  •  不思量自难忘°
    2021-02-01 04:24

    1. Create a new tomcat server

    1. Create a new dynamic web project

    Export war to tomcat server

    1. Tomcat debug configuration(important), first double click tomcat server, then select "Use Tomcat installation (takes control of Tomcat installation)"

    1. Add breakpoints

    1. Run tomcat in debug mode

    1. Test war in web browser

    1. Edit source path

    1. Debug source code in Tomcat

    The war file is available here.

提交回复
热议问题