Debug button is not doing anything for Tomcat
With my project by debug button is not doing anything.
I have a setup in which in 'Run/Debug Configuration' I build a project with maven and then deploy the war file. So till yesterday while starting the debug, I was able to do the debugging on my project. Now today it's just doesn't do anything. it is also not disabled but clicking on debug just doesn't do anything. At the same time I can do 'Run' the same configuration without any problem. But with run, I cannot debug my code.
The only difference I have is, yesterday I tried to do the remote debugging from localhost(I mean started the tomcat locally using startup.sh and did 'Attach to process') to debug one of the application which I am not able to deploy via IntelliJ. As part of running tomcat locally I set the few environments in setenv.sh file. The content is following.
export ZSINSTANCE="/<PATH>"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx8192m"
export CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,address=6005,server=y,suspend=n"
I have already tried following without any help,
- Invalidate cache/Restart
- Renamed the setenv.sh just in case
- Restart of IntelliJ and Mac as well
Some help will be really appreciated as I am not able to debug my application at all.

Please sign in to leave a comment.
Try with the vanilla unmodified Tomcat installation (it may not start properly with renamed setenv.sh or debug may not work when you override the default options).
If the issue persists, share the logs (https://intellij-support.jetbrains.com/hc/articles/207241085). You can upload the files at https://uploads.services.jetbrains.com/.