cloudflow icon indicating copy to clipboard operation
cloudflow copied to clipboard

Introduce a setting to configure jvm options used in runLocal when forking jvm

Open adriaanm opened this issue 5 years ago • 0 comments

When trying to attach a debugger to a runLocal run, I couldn't find a way to change the JVM options, which is my preferred way of launch a remote debugger session from IntelliJ. It would be intuitive to do something like

set javaOptions in app/runLocal := List("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005")

However, this doesn't work. I think it's because the ForkOptions don't take this setting into account:

https://github.com/lightbend/cloudflow/blob/79eac3e3078101fd4a238477235500534577b849/core/sbt-cloudflow/src/main/scala/cloudflow/sbt/CloudflowLocalRunnerPlugin.scala#L169-L177

adriaanm avatar May 02 '20 08:05 adriaanm