How do i debug a web application running on jetty in eclipse?

后端 未结 7 2029
無奈伤痛
無奈伤痛 2021-01-31 12:24

never done web programming before. Is there a way to set breakpoints, see variable values in eclipse? The app i want to debug makes a Query string whcih i would like to easily e

7条回答
  •  余生分开走
    2021-01-31 12:39

    Click External Tools Config,

    enter image description here

    Select program and click the new button top left. Set location to your maven binary working directory to local workspace and arguments to jetty:run enter image description here

    In the environment tab set the maven opts. Notice socket address = 4000 and suspend=y enter image description here

    The go to debug configurations and add a new remote application. Add a project name and set the socket address. Now run the External tool it should say:

    Listening for transport dt_socket at address: 4000

    Then you can debug the remote app and add breakpoints etc.

    enter image description here enter image description here

提交回复
热议问题