linux上的sbt不接受-jvm调试5005

linux上的sbt不接受-jvm调试5005,linux,debugging,intellij-idea,sbt,archlinux,Linux,Debugging,Intellij Idea,Sbt,Archlinux,我在Arch Linux上使用的是官方Arch存储库中的sbt launcher版本0.13.7。我正在尝试使用IntelliJ调试scala应用程序 我看到的其他地方,包括其他堆栈溢出问题,似乎都说只要调用“sbt-jvmdebug5005”就可以调试sbt的Linux版本 但是,当我执行此操作时,会出现一长串错误: [warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.

我在Arch Linux上使用的是官方Arch存储库中的sbt launcher版本0.13.7。我正在尝试使用IntelliJ调试scala应用程序

我看到的其他地方,包括其他堆栈溢出问题,似乎都说只要调用“sbt-jvmdebug5005”就可以调试sbt的Linux版本

但是,当我执行此操作时,会出现一长串错误:

[warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0
[error] Expected letter
[error] Expected symbol
[error] Expected '!'
[error] Expected '+'
[error] Expected '++'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected ';'
[error] Expected end of input.
[error] Expected '--'
[error] Expected 'show'
[error] Expected 'all'
[error] Expected '*'
[error] Expected '{'
[error] Expected project ID
[error] Expected configuration
[error] Expected key
[error] Expected '-'
[error] 5005
[error] ^
[error] Not a valid command: jvm-debug
[error] Not a valid project ID: jvm-debug
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: jvm-debug
[error] jvm-debug
[error]          ^

这是为什么?我如何设置sbt项目以在端口上调试

看来这是可行的:

export SBT_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" && sbt
export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
但是,如果有人知道的话,我仍然想知道为什么“sbt-jvm debug 5005”不能在Arch上工作。

问题是关于Linux上的sbt,但我在OS X中遇到了同样的问题

OSX中的SBT 0.13.9既不接受
-jvm调试
,也不遵循公认答案中所示的
SBT\u选项
环境

然而,这是可行的:

export SBT_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" && sbt
export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

我在Windows 10下,我有完全相同的错误。我当时正在使用activator,并从年底它下线后搬到了sbt。非常奇怪…在macOS X上运行sbt-jvm调试5005时也会发生这种情况