debugging java application deployed in tomcat

后端 未结 7 1555
刺人心
刺人心 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:17

    Steps to setup the tomcat Debugger with eclipse

    Install the following things:

    java 1.8+

    eclipse EE version

    download tomcat 8+

    open eclipse and go to servers tab and add a new server(window-> show View-> Others -> Search Servers)

    Mark your project as Dynamic web Project(Rightclick on Project-> project facets -> select Dynamic web module)

    Export war (File-> Export-> search war -> select module and choose the path)

    Run as -> Run on Server

    Start the tomcat Server in Debug or Run Mode

    check on localhost:8080

提交回复
热议问题