本地調試
直接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本身。