idea 无法debug调试 idea 无法debug调试的解决方案
梦昼初心 人气:22使用idea 调试模式运行项目是启动不了,本人亲自测试有效使用
报错信息如下
C:\tomcat路径\apache-tomcat-8.5.40\bin\catalina.bat run
[2019-04-19 10:53:53,796] Artifact agro_examina: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE: "C:\Users\Administrator\.IntelliJIdea2019.1\system\tomcat\Unnamed_agro_examina_2"
Using CATALINA_HOME: "C:\develop\apache-tomcat-8.5.40"
Using CATALINA_TMPDIR: "C:\develop\apache-tomcat-8.5.40\temp"
Using JRE_HOME: "F:\本地存放jdk路径\jdk1.7.0_21"
Using CLASSPATH: "C:\tomcat路径\apache-tomcat-8.5.40\bin\bootstrap.jar;C:\tomcat路径\apache-tomcat-8.5.40\bin\tomcat-juli.jar"
ERROR: transport library not found: dt_socket
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_LOAD(509)
JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [../../../src/share/back/debugInit.c:741]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
Disconnected from server
1.查看环境变量配置的javahome
右击“我的电脑”——>属性——>高级系统设置——>环境变量
idea中添加tomcat的jre版本要与此处保持一致
2.修改idea配置的jre版本
到此idea 调试模式运行启动成功,希望能帮到小伙伴,欢迎评论沟通
加载全部内容