Does anyone know how to configure the jetty gradle plugin to run in debug mode so that I can attach a remote debugger?
I've tried setting the gradle and java opts to:
-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n
...but it doesn't seem to work.
I'm able to get my own jetty installation working fine, just not via gradle (jettyRun or jettyRunWar).
Regards.
On Linux:
export GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n"
gradle jettyRun
On Windows:
set GRADLE_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n
gradle jettyRun