Unable to open debugger port in IntelliJ IDEA

后端 未结 29 1302
误落风尘
误落风尘 2021-01-30 08:21

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

29条回答
  •  囚心锁ツ
    2021-01-30 08:41

    1. Check "Run" configuration to see which port it is using (8081).
    2. Find all the other processes using that port lsof -t -i :8081
    3. Kill the processes on that port. kill PROCESS_ID
    4. Run Tomcat in Debug mode.

    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.

提交回复
热议问题