Why does executing debug in 0.13.7 fail with “Could not find agent library jdwp:transport on the library path”?

后端 未结 4 631
刺人心
刺人心 2021-01-11 18:13

After update from 0.13.6 to 0.13.7 I cannot debug with SBT. It is installed using Homebrew. I tried to reinstall it,

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-11 18:42

    To piggyback on Eugene's answer above, since the fix is in a bash script, it is pretty easy to apply the fix from https://github.com/sbt/sbt-launcher-package/pull/85/files manually. Just edit bin/sbt-launch-lib.bash to have this:

    addJava "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$1"
    

    Instead of this:

    addJava "-agentlib:jdwp:transport=dt_socket,server=y,suspend=n,address=$1"
    

    (Mind the : not = between jdwp and transport).

提交回复
热议问题