title: VS Code Java debugger arguments
body: <p>I am trying to use VS Code <a href="https://marketplace.visualstudio.com/items?itemName=donjayamanne.javadebugger" rel="nofollow noreferrer">debugger plugin</a> to debug.
  My program takes some command line arguments in the main method. The debugger plugin says it has support for arguments, but I couldn't figure out how to provide these to the debugger.</p>
  
  <p>I created the <code>task.json</code> that it suggested, but if I put the args in the "args" field of the json, it gives an error.</p>
  
  <p>This is my <code>tasks.json</code>:</p>
  
  <pre><code>{
  "version": "0.1.0",
  "command": "javac",
  "isShellCommand": true,
  "showOutput": "always",
  "isWatching": true,
  "suppressTaskName": true,
    "tasks": [
        {
            "taskName": "build",
            "args": ["-g", "${file}"]
        }
    ]
  }
  </code></pre>
  
  <p>and this is my <code>launch.json</code>:</p>
  
  <pre><code>{
  "version": "0.2.0",
  "configurations": [
      {
          "name": "Java",
          "type": "java",
          "request": "launch",
          "stopOnEntry": true,
          "cwd": "${fileDirname}",
          "startupClass": "${fileBasename}",
          "options": [
              "-classpath",
              "${workspaceRoot}:."
          ],
          "jdkPath": "/usr/lib/jvm/java-8-openjdk/bin"
      },
      {
          "name": "Java Console App",
          "type": "java",
          "request": "launch",
          "stopOnEntry": true,
          "cwd": "${fileDirname}",
          "startupClass": "${fileBasename}",
          "options": [
              "-classpath",
              "\"${fileDirname};.\""
          ],
          "externalConsole": true,
          "jdkPath": "/usr/lib/jvm/java-8-openjdk/bin"
      }
  ]
  }
  </code></pre>