title: changing settings in sbt task
body: <p>I'm trying to defined custom task in <code>sbt</code> that will run main class in debug mode.</p>
  
  <pre><code>lazy val root = (project in file("."))
    .settings(
      fork in run := true
  )
  
  
  lazy val runDebug = inputKey[Unit]("run in debug")
  
  runDebug := {
        javaOptions in run += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" //this doesn't work
  
        (run in Compile).evaluated 
      },
  </code></pre>
  
  <p>I cannot make <code>sbt</code> to set <code>javaOptions</code> correctly. How to use <code>Def.settings</code> with <code>inputTask</code> to define another <code>inputTask</code> ?</p>