无法在IntelliJ IDEA中打开调试器端口 [英] Unable to open debugger port in IntelliJ IDEA

查看:918
本文介绍了无法在IntelliJ IDEA中打开调试器端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我无法使用IntelliJ IDE在调试模式下设置应用程序,但是运行模式可以.

I have a problem that I can not set up my application in debug mode with IntelliJ IDE, but run mode is OK.

我的操作系统是Windows 7,IDE是IntelliJ IDEA,Web容器是Tomcat6.我尝试了很长时间,更改了HTTP端口和JMX端口,但是没有用.

My OS is Windows 7, IDE is IntelliJ IDEA, web container is Tomcat 6. I have tried for a long time, changed the HTTP port and the JMX port, but it did not work.

当我使用IntelliJ在调试模式下设置应用程序时,它失败了,事件日志为:

When I set up the app in debug mode with IntelliJ, it failed and the event log is:

16:05:35运行tomcat时出错:无法打开调试器端口: java.net.BindException地址已在使用中:JVM_Bind".

16:05:35 Error running tomcat: Unable to open debugger port : java.net.BindException "Address already in use: JVM_Bind".

推荐答案

问题的关键在调试器端口中.我遇到了同样的问题,我杀死了监听端口8081(我的http端口),1099(JMX端口),tomcat shutdown端口,每个java.exe的进程,但仍然没有.

the key to the issue is in debugger port. I was having the same problem, I was killing every process listening on port 8081 (my http port), 1099 (JMX port), tomcat shutdown port, every java.exe, and still nothing.

问题是这个调试器端口是不同的.如果运行该应用程序,它将通过您为Tomcat配置的端口8080、8081或其他任何端口.但是,如果您在调试"模式下运行它,它将通过另一个端口.

The thing is this debugger port is different. If you run the application, it will go through the port you have Tomcat configured for, 8080, 8081 or whatever. But if you run it in Debug mode, it goes through a different port.

如果您要通过IntelliJ编辑Tomcat配置,则最后一个标签为启动/连接.在这里查看 Debug 模式的配置,您将看到其端口.我的是50473.我将其更改为50472,然后一切又开始正常工作.

If you go edit your Tomcat configuration from IntelliJ, the last tab is Startup/Connection. Here go see the configuration for Debug mode, and you'll see its port. Mine was 50473. I changed it to 50472, and everything started working again.

这篇关于无法在IntelliJ IDEA中打开调试器端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆