tomcatRunDebug task is almost identical to appRunDebug task. There’s only one difference: tomcatRunDebug forces Gretty to ignore the value of gretty.servletContainer and run on Tomcat.