miércoles, 6 de junio de 2012

Jetty Remote Debug

So did you ever had to do that???? This is, you need to run you app in Jetty and debug the freaking code. Well this small snippet of code take it from this other great blog should do the trick.
export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"
As you can see you just set an env property and you are good to go. Just run
mave jetty:run
And be happy. Bear in mind that, with this particular setup, your jetty will receive connections in port 4000. Feel free to change it at your convenience.

No hay comentarios:

Publicar un comentario