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