gpt4 book ai didi

java - 在 Windows 上使用 activator -jvm-debug 和 Java 8 调试 Play 2.3 RC1 可能吗?

转载 作者:搜寻专家 更新时间:2023-11-01 02:25:39 27 4
gpt4 key购买 nike

我正在尝试 debug play framework 2.3 , 使用 activator -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 update 5

最佳答案

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

例如试试这个:

> set JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999"
> activator

关于java - 在 Windows 上使用 activator -jvm-debug 和 Java 8 调试 Play 2.3 RC1 可能吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23708032/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com