Hi all,
Just looking at debugging Lagom when using Maven. Lagom runs services in the same JVM as the build tool, so to debug Lagom services in Lagom, you simply start Maven in debug mode. Maven provides a convenient script for starting it in debug mode, mvnDebug. The problem is, the debug port in that script is hard coded to 8000, which conflicts with the Lagom service locator port. Here are some options that we could take to solve this:
* Do nothing. Document how to start Maven in debug mode without using mvnDebug, which is done by doing this on *nix systems:
env MAVEN_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555" mvn
* Change the default service locator port in maven (and maybe also sbt) to something else (maybe 8001).
* Create a script, similar to mvnDebug, that the lagom maven archetype generates, that uses a different (and configurable) debug port.
Any thoughts about which option we should take?
Cheers,
James
--
James Roper
Software Engineer