Is debugging of Play 2.3 RC1 with -jvm-debug and Java 8 activator on Windows possible?

I am trying to debug play framework 2.3 with a command activator -jvm-debug 9999 run, but I encounter the following error:

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]          ^

I am using Java 8 5 update

+4
source share
2 answers

I had the same issue on a Mac. As soon as I updated the activator from 1.2.3 to 1.2.12, it started working.

+1
source

This is probably an activator error on Windows (see my comment). In the meantime, you can manually provide debugging options for the virtual machine by setting JAVA_OPTS.

eg. Try the following:

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

Source: https://habr.com/ru/post/1540938/


All Articles