Cannot load this JVM TI agent twice, check your Java command line for duplicate jdwp options


本地调试

直接Debug As 执行Demo会报错:

ERROR: Cannot load this JVM TI agent twice, check your Java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp

 

解决办法:

编辑Demo.launch

找到<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value=" -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes ...>

将-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n去掉!

附加Play源码,即可调试Play本身。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM