调试在Netbeans Tomcat中不起作用

Shi*_*ppa 4 java tomcat netbeans tomcat8 netbeans-8

当我尝试在Netbeans 8 IDE中调试我的项目时,我收到以下错误,我正在使用Apache Tomcat 8.

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: failed to create shared memory listener: Cannot create a file when that file already exists
ERROR: JDWP Transport dt_shmem failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750
Run Code Online (Sandbox Code Playgroud)

我无法理解这个问题.

有人可以解释我的问题,问题的原因和解决方案.

谢谢

Dic*_*ble 5

我有同样的问题,确实是由hello_earth提到的.可能当您打开taskmanager时,您将看到正在运行多个java se进程.杀死他们两个然后再次工作.


Boh*_*anZ 3

某个地方的端口被占用了,你得检查一下哪里。(有时可能是 Skype)。另外,您可以尝试将默认值覆盖为 local.properties 文件中的其他参数。

tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8005,suspend=n
Run Code Online (Sandbox Code Playgroud)