First of all, if you open catalina.bat with text editor, you see that: "Do not set the variables in this script....." So never change it in that script, instead you can do below steps:
Then set 2 variables in that bat file such as:
set CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
set JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
Lastly run that at cmd that: "catalina.bat jpda start"
In IDE, create remote debug configuration and set host to related server ip and port to 8000.