本地调试

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

相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2022-01-24
  • 2022-12-23
  • 2021-11-22
  • 2021-10-18
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2021-11-07
  • 2021-08-03
  • 2022-01-02
  • 2022-12-23
  • 2022-01-07
  • 2021-12-09
相关资源
相似解决方案