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

本地調試java

直接Debug As 執行Demo會報錯:eclipse

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: jdwpsocket

 

解決辦法:this

編輯Demo.launch.net

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

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

附加Play源碼,便可調試Play自己。server

相關文章
相關標籤/搜索