4

我正在尝试使用命令调试 play framework 2.3activator -jvm-debug 9999 run,但遇到以下错误:

E:\workspace\CustomerClub>activator -jvm-debug 9999 run
[info] Loading project definition from E:\workspace\CustomerClub\project
[info] Set current project to CustomerClub (in build file:/E:/workspace/CustomerClub/)
[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] 9999
[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]          ^

我正在使用 Java 8 更新 5

4

2 回答 2

4

这可能是 Windows 上的 Activator 错误(请参阅我的评论)。同时,您可以通过设置 JAVA_OPTS 手动为 VM 提供调试选项。

例如试试这个:

> set JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999"
> activator
于 2014-05-17T10:40:44.683 回答
1

我在 Mac 上遇到了同样的问题。一旦我将激活器从 1.2.3 升级到 1.2.12,它就开始工作了。

于 2014-12-15T12:02:32.420 回答