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

后端 未结 7 2039
無奈伤痛
無奈伤痛 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:54

    I would just expand eaykin's answer as the URL is broken.

    Run the Mvn Debug as bellow...

    $ mvnDebug -Dmaven.test.skip -Denvironment=dev clean jetty:run

    This will wait on port 8000

    Preparing to Execute Maven in Debug Mode Listening for transport dt_socket at address: 8000

    Then go to the Eclipse Run --> Debug Configurations --> Remote Java Applications Define Host as 'localhost' and port as 8000 if they are not default.

    If you click on the "Debug" button, this will start the application from mvn.

提交回复
热议问题