play debug启动报错Error occurred during initialization of VM agent library failed to init: jdwp

xiaoxiao2021-02-28  46

play 框架 部署后debug启动报错解决

错误代码:

Error occurred during initialization of VM agent library failed to init: jdwp

ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.

解决方法:

在eclipse文件下找到.launch文件修改相应代码

原来的配置

<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value=" -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dplay.id= -Dapplication.path=&quot;${project_loc:playTest}&quot; -Djava.endorsed.dirs=&quot;E:\play-1.2.7.2\play-1.2.7.2/framework/endorsed&quot; -javaagent:&quot;E:\play-1.2.7.2\play-1.2.7.2/framework/play-1.2.7.2.jar&quot;"/>

修改后的配置

<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024m -Xms1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Dplay.id= -Dapplication.path=&quot;${project_loc:playTest}&quot; -Djava.endorsed.dirs=&quot;E:\play-1.2.7.2\play-1.2.7.2/framework/endorsed&quot; -javaagent:&quot;E:\play-1.2.7.2\play-1.2.7.2/framework/play-1.2.7.2.jar&quot;"/>

debug启动成功

转载请注明原文地址: https://www.6miu.com/read-2623548.html

最新回复(0)