title: SBT Debug port per project
body: <p>How do I change the SBT debug port on a per project basis?</p>
  
  <p>I can add the debug JVM options to the environment variable <code>SBT_OPTS</code></p>
  
  <pre><code>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
  </code></pre>
  
  <p>But this will apply to all SBT instances and if I want to run SBT in debug for two separate projects simultaneously, I get this error because the port is already in use:</p>
  
  <pre><code>ERROR: transport error 202: bind failed: Address already in use
  </code></pre>