title: How to pass command-line arguments to debugger using VSCode?
body: <p>I'm using <code>VSCode</code> on Linux and I've came up with a the following launch configuration in my attempt to fire the <code>VSCode</code> debugger, which, in turn, would rely on <code>gdb</code>:</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
      {
          "name": "(gdb) Launch",
          "type": "cppdbg",
          "request": "launch",
          "program": "${fileDirname}/${fileBasenameNoExtension}",
          "args": ["a", "b", "c", "d", "e"],
          "stopAtEntry": false,
          "cwd": "${fileDirname}",
          "environment": [],
          "externalConsole": false,
          "MIMode": "gdb",
          "setupCommands": [
              {
                  "description": "Enable pretty-printing for gdb",
                  "text": "-enable-pretty-printing",
                  "ignoreFailures": true
              }
          ],
          "preLaunchTask": "make project"
      }]
  </code></pre>
  
  <p>}</p>
  
  <p>Here, using the <code>args</code> attribute I'd like to pass 5 arguments to the process I'm debugging, namely: "a", "b", "c", "d", "e".</p>
  
  <p>However, when I run the debugger, the <code>argc</code> value is correctly set to 6, but the values themselves, stored by <code>argv</code> are not present.</p>
  
  <p><a href="https://i.stack.imgur.com/jK7UB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jK7UB.png" alt="enter image description here"></a></p>