Skip to content

Commit

Permalink
Enable debugging for any address spray#101
Browse files Browse the repository at this point in the history
  • Loading branch information
tca3 authored Aug 25, 2022
1 parent d75a1ea commit d3dfc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/spray/revolver/DebugSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package spray.revolver

case class DebugSettings(port: Int = 5005, suspend: Boolean = false) {
def toCmdLineArg: String =
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=%s,address=%d".format(b2str(suspend), port)
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=%s,address=*:%d".format(b2str(suspend), port)

private def b2str(b: Boolean) = if (b) "y" else "n"
}

0 comments on commit d3dfc44

Please sign in to comment.