Nat*_*han 4 linux debugging intellij-idea sbt archlinux
我在 Arch Linux 上使用来自官方 arch 存储库的 sbt 启动器版本 0.13.7。我正在尝试使用 IntelliJ 调试 scala 应用程序。
我查看的其他地方,包括其他堆栈溢出问题,似乎都说 Linux 版本的 sbt 可以通过简单地调用“sbt -jvm-debug 5005”来调试
但是,当我这样做时,我收到一长串错误:
[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
但是,我仍然想知道为什么“sbt -jvm-debug 5005”在 Arch 上不起作用(如果有人知道的话)。
| 归档时间: | 
 | 
| 查看次数: | 1804 次 | 
| 最近记录: |