Modify catalina.bat to add
set JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
and
CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
Optional: Add below line to run the debug mode by default when you run startup.bat
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
Eclipse or STS select debug configuration right click -> new
connection type -> Standard socket Attach
Port -> 8000 (as given in the CATALINA_OPTS)
Host -> localhost or IP address