Best way to debug Java web application packaged as a WAR using Eclipse and Maven?

后端 未结 4 725
失恋的感觉
失恋的感觉 2020-12-08 17:02

I\'ve not built a Java web application before, but I have it complete enough to test and Maven is building my WAR file just fine. It is a multi-module Maven project and the

4条回答
  •  自闭症患者
    2020-12-08 17:56

    Is there some kind of launch configuration I should create, or do I attach the debugger remotely? Is there something in Eclipse that can help...like a plugin?

    With m2eclipse (and the Maven Integration for WTP that you install from the Extras), you could use the WTP and start your app in debug mode.

    As an alternative, you could connect a remote debugger to a Jetty. See Debugging with the Maven Jetty Plugin in Eclipse.

提交回复
热议问题