I get a lot of value from being able to remote debug an app in a webserver. When I first started running the app using mvn jetty:run, I wasn’t sure how to allow remote debugging. At first I was setting MAVEN_OPTS in my .bashrc, but that has a few disadvantages:
- You can’t run other Maven commands while the server is running
- Debugging is always on, whether you want it or not
Today I found an excellent description of how to start the server with remote debugging enabled from inside Eclipse. Much better!