If you're just doing activator ~run
, then you should be able to pass a JVM debug port option with:
./activator -jvm-debug <port> ~run
This may not do the same thing as play-run, but here's the arguments it's adding to the command line:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<port>
From: https://github.com/typesafehub/activator/blob/master/dist/src/templates/activator#L107
I've successfully attached to this process in my IDE.
If you're running in windows, the automatic configuration is a bit different. With the latest activator, you can do the following:
- Open
%UserProfile%\.activator\activatorconfig.txt
(The UserProfile is different depending on your windows install. Mine isC:\Documents and Settings\jsuereth
on one installation andC:\Users\jsuereth
on another). Past the following in the file:-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<PUT YOUR PORT HERE>
- You can set the JAVA_OPTS property on the command line before starting activator, e.g.
set "JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<port>"
Hope that helps!