Tried to set up everything as described here https://github.com/bmuschko/gradle-tomcat-plugin for question How do I remote debug my Tomcat started up by the plugin?
I. Set property in ~/.bashrc on
GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=29999" export GRADLE_OPTS
II. in a folder of my project using tomcat plugin ran
Result I can connect to port 29999 when gradle build is being executed, but then VM dies and trying to reconnect fails, even though tomcat is indeed running.
Problem analysis This to me indecates that GRADLE picks up the debug parameter instead of passing it to tomcat’s plugin JVM. The same problem is with Jetty plugin.
System parameters OS: Ubuntu 11.04 - the Natty Narwhal
Gradle: 1.7 Java: 1.6.26 Tomcat: 7.0.42