问题描述
从 0.13.6
更新到 0.13.7
我无法使用 SBT进行调试
。
它使用 Homebrew
安装。我试图重新安装它,酿造医生
什么都不显示。
我没有更改/重新安装 Java
之间 SBT
更新。
lgr $ sbt -v -jvm-debug 5005project webapp运行
[process_args] java_version ='1.8.0_25'
#执行命令行:
java
-Xms1024m
-Xmx1024m
-XX:ReservedCodeCacheSize = 128m
-XX:MaxMetaspaceSize = 256m
-agentlib:jdwp:transport = dt_socket,server = y,suspend = n,address = 5005
-jar
/usr/local/Cellar/sbt/0.13.7/libexec/sbt-launch.jar
项目webapp
运行
VM初始化期间发生错误
找不到库路径上的代理库jdwp:transport,错误:dlopen(libjdwp:transport.dylib,1 ):image not found
我不确定是否 SBT
缺少一些库,或 brew
公式没有正确安装。
我将有助于任何想法如何解决它。
重新安装 Java
,没有帮助。
解决方法我下载了 SBT 0.13.6
,它的工作没有问题,所以我开始认为这是一个sbt错误。任何人都可以帮助澄清是否是吗?
为了搭载Eugene上面的答案,由于修复是一个bash脚本,从。只需编辑 bin / sbt-launch-lib.bash
即可:
addJava-agentlib:jdwp = transport = dt_socket,server = y,suspend = n,address = $ 1
而不是这样:
addJava-agentlib:jdwp:transport = dt_socket,server = y,suspend = n ,地址= $ 1
(注意:
=
jdwp
和 transport
)。 p>
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, brew doctor
shows nothing.I did not change/reinstall Java
between SBT
update.
lgr$ sbt -v -jvm-debug 5005 "project webapp" run
[process_args] java_version = '1.8.0_25'
# Executing command line:
java
-Xms1024m
-Xmx1024m
-XX:ReservedCodeCacheSize=128m
-XX:MaxMetaspaceSize=256m
-agentlib:jdwp:transport=dt_socket,server=y,suspend=n,address=5005
-jar
/usr/local/Cellar/sbt/0.13.7/libexec/sbt-launch.jar
"project webapp"
run
Error occurred during initialization of VM
Could not find agent library jdwp:transport on the library path, with error: dlopen(libjdwp:transport.dylib, 1): image not found
I am unsure whether SBT
is missing some library, or brew
formula didn't install properly.I will be helpful for any idea how to fix it.
Reinstalled Java
, didn't help.
Workaround I downloaded SBT 0.13.6
and it works without problem, so I start to consider this as a sbt bug. Can anyone help to clarify if it is?
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
).
这篇关于为什么在0.13.7中执行调试失败,“在库路径上找不到代理库jdwp:transport”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!