我正在尝试使用activator -jvm-debug 9999 run
命令debug play framework 2.3,但遇到以下错误:
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 update 5
答案 0 :(得分:4)
这可能是Windows上的Activator错误(请参阅我的评论)。在此期间,您可以通过设置JAVA_OPTS手动为VM提供调试选项。
e.g。试试这个:
> set JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999"
> activator
答案 1 :(得分:1)
我在Mac上遇到了同样的问题。一旦我将激活器从1.2.3升级到1.2.12,它就开始工作了。