Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable debugging for any address #101

Open
alexander-myltsev opened this issue Jul 22, 2021 · 2 comments · May be fixed by #109
Open

Enable debugging for any address #101

alexander-myltsev opened this issue Jul 22, 2021 · 2 comments · May be fixed by #109

Comments

@alexander-myltsev
Copy link

Hi,

I need to launch and debug sbt + akka + revolver/reStart in Docker environment. I see that Revolver.enableDebugging(port = 5020, suspend = true) creates DebugSettings in the end with address=%d. To make JVM available for a debugger it needs address=*:%d. I know that because I extended DebugSettings with overridden toCmdLineArg: String:

override def toCmdLineArg: String =
  "-agentlib:jdwp=transport=dt_socket,server=y,suspend=%s,address=*:%d".format(b2str(suspend), port)

Is there a, say, security or some other reason you haven't implemented it yet?

@newhoggy
Copy link

I'm also having this problem.

@newhoggy
Copy link

Looks like you can avoid using Revolver.enableDebugging and use javaOptions to set up the debugging. For example

set reStart / javaOptions := Seq(\"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:1234\")'

tca3 added a commit to tca3/sbt-revolver that referenced this issue Aug 25, 2022
@tca3 tca3 linked a pull request Aug 25, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants