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