I have a problem that I can not set up my application in debug mode with IntelliJ IDE, but run mode is OK.
My OS is Windows 7, IDE is IntelliJ IDEA, web container is Tom
While debug I got this issue: It worked with
Change debug port of your server configured in the Intelli J.
It will be fixed.
There are multiple solution for the same.
Running IntelliJ as Administrator in Windows did the magic for me:
The only thing that worked for me is to go to Task Manager on Windows, and end all the Java processes that is running by right click -> end Task.
8081
). lsof -t -i :8081
kill PROCESS_ID
In my case, I wasted so much time on changing debugger port but it was not the issue. Since tomcat was not able to run on the port I chose in Run configuration, I was not able to debug my service.