eclipse中以debug方式启动tomcat报错

时间:2023-02-03 15:55:42

在eclipse中debug  Tomcat报错,错误如下:

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

ERROR: transport error 202: connect failed: Operation timed out

ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]

 

错误原因是本地的host配置中没有加上127.0.0.1 localhost