debug play 2.3

552 views
Skip to first unread message

Mohsen Kashi

unread,
May 17, 2014, 1:18:52 AM5/17/14
to play-fr...@googlegroups.com
I am trying to debug, with "activator -jvm-debug 9999 run" command. But my request stopped with this 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 update 5

Alberto Souza

unread,
May 17, 2014, 6:53:12 AM5/17/14
to play-fr...@googlegroups.com
Hi,

If you are running on windows, you should try the steps suggested by this blog => http://andikanugraha.com/2014/05/debug-typesafe-activator-play-framework-using-eclipse/

If you are on unix(mac or linux), the command that works for me is the same that you wrote :(.

Aurélien

unread,
May 17, 2014, 7:59:03 AM5/17/14
to play-fr...@googlegroups.com
Hi,

On windows, if you use SBT directly, you can add "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999" to your command line. After you run sbt in your project, you will have to launch the debug connexion in your IDE to enable sbt to continue your project launching.

Here is my full sbt.bat :
set SCRIPT_DIR=%~dp0
java
^
 
-Xms512M^
 
-Xmx1536M^
 
-Xss1M^
 
-XX:+CMSClassUnloadingEnabled^
 
-Dsbt.ivy.home=D:/dev/ivy^
 
-Divy.home=D:/dev/ivy^
 
-Dfile.encoding=UTF8^
 
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999^
 
-jar "%SCRIPT_DIR%sbt-launch.jar" %*

Cheers,
Aurélien
Reply all
Reply to author
Forward
0 new messages