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

后端 未结 4 615
刺人心
刺人心 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:40

    It is installed using Homebrew.

    Homebrew install is sanctioned by sbt project as a recommended way to install on Mac, but we (I'm one of the sbt devs) currently don't control it. We do however have the official package sbt/sbt-launcher-package, and last I checked Homebrew is also using it.

    Looking at git blame of the relevant part of the script, it seems like the debug option was "fixed" in sbt/sbt-launcher-package#83:

    In sbt-launch-lib.bash, -Xdebug option is used for debugging. We should use -agentlib option for Java 5+.

    Maybe your issue should be tracked as a bug in sbt/sbt-launcher-package.

提交回复
热议问题