Search code examples
playframeworksbt

sbt -jvm-debug port ignored on Windows 10


I want to run sbt in debug mode on Windows 10 with command:

sbt -jvm-debug 5005 run

But sbt changes listening port to 54430 with following message in log:

Listening for transport dt_socket at address: 54430

How to fix port on sbt with Windows 10?


Solution

  • Using git bash this command will work on Windows 10:

    sbt -jvm-debug 5005 run
    

    But if you are using PowerShell or CMD you are going to need to change the "-jvm-debug" or just ignore the command and add another one "address":

    sbt -jvm-debug 5005 run address=5005