Unable to open debugger port in IntelliJ IDEA

后端 未结 29 1384
误落风尘
误落风尘 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:35

    While debug I got this issue: It worked with

    1. tried changing my Tomcat http port 8082 to 8083(In debug configurations on IntelliJ and in Tomcat->conf->server.xml also)
    2. tried changing JMX port from 1099 to 1009.
    3. tried changing debug port in Startup/Connection in debug configurations
    4. killed all java processes in TaskManager->Processes.
    0 讨论(0)
  • 2021-01-30 08:35

    Change debug port of your server configured in the Intelli J.

    It will be fixed.

    0 讨论(0)
  • 2021-01-30 08:35

    There are multiple solution for the same.

    1. Either we may close the IDE (e.g. IntellJ)
    2. Find t IND00123:bin devbratanand$ lsof -i:30303 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME idea 437 devbratanand 56u IPv4 0xb2720e580a7d6483 0t0 TCP 10.17.130.41:55222->vmqp-cms-pan-app1.emea.akqa.local:30303 (ESTABLISHED) IND00123:bin devbratanand$ kill -9 437
    0 讨论(0)
  • 2021-01-30 08:38

    Running IntelliJ as Administrator in Windows did the magic for me:

    0 讨论(0)
  • 2021-01-30 08:41

    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.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题